redeploy

How to update a running asp.net core application?

谁都会走 提交于 2020-06-25 03:26:09
问题 I have a Asp.Net Core MVC application running on Windows Server 2008 R2 with IIS. But every time I update this application, I need to manually stop the applicationPool in IIS, and restart the applicationPool after I finish updating the app. Otherwise it will tel me "the xxx.dll is in use by other progress". Is there any way to make this process easier? 回答1: Finally I found my anwser: I just need add a file named app_offline.htm to the IIS web root(not your project wwwroot folder). due to this

How to update a running asp.net core application?

此生再无相见时 提交于 2020-06-25 03:25:39
问题 I have a Asp.Net Core MVC application running on Windows Server 2008 R2 with IIS. But every time I update this application, I need to manually stop the applicationPool in IIS, and restart the applicationPool after I finish updating the app. Otherwise it will tel me "the xxx.dll is in use by other progress". Is there any way to make this process easier? 回答1: Finally I found my anwser: I just need add a file named app_offline.htm to the IIS web root(not your project wwwroot folder). due to this

Tomcat on production server, PermGen and redeploys

烂漫一生 提交于 2019-12-31 09:13:20
问题 It looks like MemoryError: PermGen space java.lang.OutOfMemoryError: PermGen space is a common problem. You can Increase the size of your perm space, but after 100 or 200 redeploys it will be full. Tracking ClassLoader memory leaks is nearly impossible. What are your methods for Tomcat (or another simple servlet container - Jetty?) on production server? Is server restart after each deploy a solution? Do you use one Tomcat for many applications ? Maybe I should use many Jetty servers on

Howto monitor PermGen space usage before redeploying in Tomcat

末鹿安然 提交于 2019-12-24 04:51:43
问题 In order to decide if the jvm is likely to run into a permgen space shortage after the next redeplyoment I'd like to monitor the current permgen space usage before hand something like: set myPermGenThreshold = 0.51 (51%) currentlyUsedPermGenSize = (...ask the jvm here... say it's 0.6) if (currentlyUsedPermGenSize > myPermGenThreshold ) { (...restart tomcat...) } else { (...redeploy application...) } 回答1: The Memory MX Bean will give you all non-heap usage, of which the perm gen is a part. The

howto: elastic beanstalk + deploy docker + graceful shutdown

◇◆丶佛笑我妖孽 提交于 2019-12-20 21:46:21
问题 Hi great people of stackoverflow, Were hosting a docker container on EB with an nodejs based code running on it. When redeploying our docker container we'd like the old one to do a graceful shutdown. I've found help & guides on how our code could receive a sigterm signal produced by 'docker stop' command. However further investigation into the EB machine running docker at: /opt/elasticbeanstalk/hooks/appdeploy/enact/01flip.sh shows that when "flipping" from current to the new staged container

Exception with connection pool-datasource redeploying weblogic12c war with hibernate c3p0

你离开我真会死。 提交于 2019-12-12 04:15:48
问题 I'm having a problem with hibernate and weblogic 12c, and Oracle 11g When I install my app it runs correctly, but when I update the app it throws this: An exception occurred while acquiring a poolable resource. Will retry. java.lang.NullPointerException Regards Hibernate properties: hibernate.dialect=org.hibernate.dialect.Oracle10gDialect hibernate.show_sql=true hibernate.generate_statistics=false hibernate.use_sql_comments=false hibernate.debugging=false hibernate.hbm2ddl.auto=validate

maven tomcat7 部署

假如想象 提交于 2019-12-07 19:40:59
最近在使用maven,顺便尝试了下tomcat部署。 首先,要使用maven支持tomcat的插件。我这里用的是tomcat7,所以只用了7的,6的话同理。 pom.xml里: <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> <configuration> <url>http://localhost:8080/manager/text</url> <server>tomcat</server> <username>tomcat</username> <password>lsr</password> </configuration> </plugin> 其中,url最后必须为text,一般为html,但是tomcat7必须为text。 其次,要在maven的setting.xml(这个是自定义使用的默认位置还是安装目录位置)文件里配置这个服务器,也和上面的server名字一致,也就是“tomcat”。 <servers> <server> <id>tomcat</id> <username>tomcat</username> <password>lsr</password> </server>

What is the difference between “Redeploy” and “Restart Server” in IntelliJ?

青春壹個敷衍的年華 提交于 2019-12-03 16:14:04
问题 I'm using IntelliJ with Tomcat 6 to run a Spring Java EE application. Rather than deploying the compiled war, I have opted to use the exploded war deployment, thus giving me the option to hotswap some classes and JSPs. However, aside from the "Update Classes" and "Update Classes and Resources", IntelliJ also allows users to "Redeploy" and "Restart Server" on an update action. What is the difference between these two choices? If I make a change to my method signatures in my class, or if I make

What is the difference between “Redeploy” and “Restart Server” in IntelliJ?

牧云@^-^@ 提交于 2019-12-03 05:26:40
I'm using IntelliJ with Tomcat 6 to run a Spring Java EE application. Rather than deploying the compiled war, I have opted to use the exploded war deployment, thus giving me the option to hotswap some classes and JSPs. However, aside from the "Update Classes" and "Update Classes and Resources", IntelliJ also allows users to "Redeploy" and "Restart Server" on an update action. What is the difference between these two choices? If I make a change to my method signatures in my class, or if I make a change in my Springconfig.xml, do I need to restart the server, or is a redeploy sufficient? I've

Tomcat on production server, PermGen and redeploys

时光怂恿深爱的人放手 提交于 2019-12-02 18:12:24
It looks like MemoryError: PermGen space java.lang.OutOfMemoryError: PermGen space is a common problem. You can Increase the size of your perm space, but after 100 or 200 redeploys it will be full. Tracking ClassLoader memory leaks is nearly impossible. What are your methods for Tomcat (or another simple servlet container - Jetty?) on production server? Is server restart after each deploy a solution? Do you use one Tomcat for many applications ? Maybe I should use many Jetty servers on different ports (or an embedded Jetty) and do undeploy/restart/deploy each time ? I gave up on using the