Hi All!
My website(
http://www.niusb.com,use java7、liftweb 2.6-M2) deploy tomcat7,website is worked,but over time,the tomcat don't accept user's requests,tomcat process still exists.
I need restart tomcat website is work.
My tomcat7 main config:
<Connector port="9001" protocol="org.apache.coyote.http11.Http11NioProtocol" URIEncoding="UTF-8" compression="on" compressionMinSize="2048" enableLookups="false"
connectionTimeout="30000"
redirectPort="8443" acceptCount="500" maxThreads="400"/>
and catalina.sh
JAVA_OPTS="$JAVA_OPTS -Drun.mode=production -server -XX:+CMSClassUnloadingEnabled -Xms256m -Xmx256m -XX:PermSize=128m -XX:MaxPermSize=250m -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:/data/log/tomcat/gc.log -XX:HeapDumpPath=/data/log/tomcat/dumpfile.hprof -XX:+HeapDumpOnOutOfMemoryError"
The server top info:
Cpu(s): 0.7%us, 0.0%sy, 0.0%ni, 98.7%id, 0.3%wa, 0.0%hi, 0.0%si, 0.3%st
Mem: 1534064k total, 1120424k used, 413640k free, 33436k buffers
Swap: 2097148k total, 357388k used, 1739760k free, 180012k cached
BTW,I'm try deploy to jetty9,start server report error info
java.lang.VerifyError: Bad type on operand stack|Exception Details:| Location:| net/liftweb/util/SecurityHelpers$class.base64Encode(Lnet/liftweb/util/SecurityHelpers;[B)Ljava/lang/String; @13: invokevirtual| Reason:| Type 'org/apache/commons/codec/binary/Base64' (current frame, stack[3]) is not assignable to 'org/apache/commons/codec/binary/BaseNCodec'| Current Frame:| bci: @13| flags: { }| locals: { 'net/liftweb/util/SecurityHelpers', '[B' }| stack: { uninitialized 0, uninitialized 0, 'net/liftweb/util/SecurityHelpers', 'org/apache/commons/codec/binary/Base64', '[B' }| Bytecode:| 0000000: bb00 6459 2abb 0066 59b7 0069 2bb6 006f| 0000010: b800 71b7 0074 b0 |
at net.liftweb.util.Helpers$.<init>(Helpers.scala:34)
at net.liftweb.util.Helpers$.<clinit>(Helpers.scala)
at net.liftweb.http.LiftRules.<init>(LiftRules.scala:165)
at net.liftweb.http.LiftRules$.prodInstance$lzycompute(LiftRules.scala:77)
at net.liftweb.http.LiftRules$.prodInstance(LiftRules.scala:77)
at net.liftweb.http.LiftRulesMocker$$anonfun$9$$anonfun$apply$2.apply(LiftRules.scala:64)
at net.liftweb.http.LiftRulesMocker$$anonfun$9$$anonfun$apply$2.apply(LiftRules.scala:64)
at net.liftweb.common.EmptyBox.openOr(Box.scala:644)
at net.liftweb.http.LiftRulesMocker$$anonfun$9.apply(LiftRules.scala:64)
at net.liftweb.http.LiftRulesMocker$$anonfun$9.apply(LiftRules.scala:64)
at net.liftweb.http.LiftRules$.realInstance(LiftRules.scala:85)
at net.liftweb.http.LiftRulesMocker$.toLiftRules(LiftRules.scala:49)
at net.liftweb.http.provider.servlet.ServletFilterProvider$class.init(ServletFilterProvider.scala:38)
at net.liftweb.http.LiftFilter.init(LiftServlet.scala:928)
at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:137)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:810)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:300)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1347)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:745)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:117)
at org.eclipse.jetty.util.component.ContainerLifeCycle.addBean(ContainerLifeCycle.java:281)
at org.eclipse.jetty.util.component.ContainerLifeCycle.addBean(ContainerLifeCycle.java:213)
at org.eclipse.jetty.util.component.ContainerLifeCycle.updateBeans(ContainerLifeCycle.java:763)
at org.eclipse.jetty.server.handler.HandlerCollection.setHandlers(HandlerCollection.java:89)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.setHandlers(ContextHandlerCollection.java:144)
at org.eclipse.jetty.server.handler.HandlerCollection.addHandler(HandlerCollection.java:155)
at org.eclipse.jetty.deploy.bindings.StandardDeployer.processBinding(StandardDeployer.java:41)
at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:186)
at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:498)
at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:146)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:180)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:64)
at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:605)
at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:528)
at org.eclipse.jetty.util.Scanner.scan(Scanner.java:391)
at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:313)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:150)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)
at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:560)
at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:235)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:117)
at org.eclipse.jetty.server.Server.start(Server.java:355)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:99)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:60)
at org.eclipse.jetty.server.Server.doStart(Server.java:324)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)
at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1250)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1174)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.jetty.start.Main.invokeMain(Main.java:297)
at org.eclipse.jetty.start.Main.start(Main.java:724)
at org.eclipse.jetty.start.Main.main(Main.java:103)
so,I want to know how to solve two problems at the.
Thanks All!