Здравствуйте, подскажите пожалуйста стоит ли смотреть возможно в сторону Jetty? Я сконфигурировал JAVA_OPTS правда возможно не очень правильно?Ошибка вылетает как-то непонятно почему, - иногда при доступе к самому серверу иногда при доступе к менеджеру... Код | nano /etc/default/tomcat7
|
Код | TOMCAT7_USER=tomcat7
TOMCAT7_GROUP=tomcat7
JAVA_HOME=/usr/lib/jvm/java-7-oracle
JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -Xms64m -Xmx128m -XX:PermSize=64m -XX:MaxPermSize=128m"
|
Код | Exception in thread "http-bio-8888-exec-1" java.lang.OutOfMemoryError: Java heap space at java.util.TreeMap.put(TreeMap.java:569) at sun.nio.cs.AbstractCharsetProvider.put(AbstractCharsetProvider.java:84) at sun.nio.cs.AbstractCharsetProvider.charset(AbstractCharsetProvider.java:98) at sun.nio.cs.ext.ExtendedCharsets.<init>(ExtendedCharsets.java:239) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at java.lang.Class.newInstance(Class.java:379) at java.nio.charset.Charset$ExtendedProviderHolder$1.run(Charset.java:439) at java.nio.charset.Charset$ExtendedProviderHolder$1.run(Charset.java:434) at java.security.AccessController.doPrivileged(Native Method) at java.nio.charset.Charset$ExtendedProviderHolder.extendedProvider(Charset.java:433) at java.nio.charset.Charset$ExtendedProviderHolder.<clinit>(Charset.java:430) at java.nio.charset.Charset$3.run(Charset.java:584) at java.nio.charset.Charset$3.run(Charset.java:578) at java.security.AccessController.doPrivileged(Native Method) at java.nio.charset.Charset.availableCharsets(Charset.java:577) at org.apache.tomcat.util.buf.B2CConverter.<clinit>(B2CConverter.java:57) at org.apache.tomcat.util.buf.ByteChunk.<clinit>(ByteChunk.java:102) at org.apache.tomcat.util.buf.MessageBytes.<init>(MessageBytes.java:58) at org.apache.tomcat.util.buf.MessageBytes.<init>(MessageBytes.java:36) at org.apache.tomcat.util.buf.MessageBytes$MessageBytesFactory.newInstance(MessageBytes.java:685) at org.apache.tomcat.util.buf.MessageBytes.newInstance(MessageBytes.java:78) at org.apache.coyote.Request.<init>(Request.java:83) at org.apache.coyote.AbstractProcessor.<init>(AbstractProcessor.java:53) at org.apache.coyote.http11.AbstractHttp11Processor.<init>(AbstractHttp11Processor.java:265) at org.apache.coyote.http11.Http11Processor.<init>(Http11Processor.java:55) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.createProcessor(Http11Protocol.java:165) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.createProcessor(Http11Protocol.java:103) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:563) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) Exception in thread "http-bio-8888-exec-3" java.lang.OutOfMemoryError: Java heap space Exception in thread "http-bio-8888-exec-4" java.lang.OutOfMemoryError: Java heap space Exception in thread "http-bio-8888-exec-7" java.lang.OutOfMemoryError: Java heap space Exception in thread "http-bio-8888-exec-9" java.lang.OutOfMemoryError: Java heap space Exception in thread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" java.lang.OutOfMemoryError: Java heap space Exception in thread "http-bio-8888-exec-11" Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "http-bio-8888-exec-11"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "http-bio-8888-exec-13"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "http-bio-8888-Acceptor-0" Exception in thread "http-bio-8888-exec-15" java.lang.OutOfMemoryError: Java heap space
|
Вызов просмотра свободной памяти с интервалом в 1-2 секунды.. Код | root@debian:~# service tomcat7 restart [ ok ] Stopping Tomcat servlet engine: tomcat7. [ ok ] Starting Tomcat servlet engine: tomcat7. root@debian:~# free -t -m total used free shared buffers cached Mem: 497 389 107 0 3 71 -/+ buffers/cache: 314 182 Swap: 0 0 0 Total: 497 389 107 root@debian:~# free -t -m total used free shared buffers cached Mem: 497 467 29 0 3 71 -/+ buffers/cache: 392 104 Swap: 0 0 0 Total: 497 467 29 root@debian:~# free -t -m total used free shared buffers cached Mem: 497 489 7 0 3 71 -/+ buffers/cache: 414 82 Swap: 0 0 0 Total: 497 489 7 root@debian:~# free -t -m total used free shared buffers cached Mem: 497 492 4 0 3 70 -/+ buffers/cache: 418 78 Swap: 0 0 0 Total: 497 492 4 root@debian:~# free -t -m total used free shared buffers cached Mem: 497 490 6 0 2 68 -/+ buffers/cache: 418 78 Swap: 0 0 0 Total: 497 490 6 root@debian:~# root@debian:~# free -t -m total used free shared buffers cached Mem: 497 487 9 0 2 65 -/+ buffers/cache: 419 77 Swap: 0 0 0 Total: 497 487 9 root@debian:~#
|
Спасибо!
|