tomcat 7内存调大也起不来
2017-01-11 01:12
441 查看
类似
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Timer-0"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Timer-1"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "startQuertz_QuartzSchedulerThread"
错误,或者
SEVERE:Memory usage is low, parachute is non existent, your system may start failing.
Exception in thread "http-nio-81-exec-3" Exception in thread "ExpiresCacheCleaner Thread" Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1" SEVERE:Memory usage is low, parachute is non existent, your system may start failing.
Exception in thread "http-nio-81-exec-1" SEVERE:Memory usage is low, parachute is non existent, your system may start failing.
Exception in thread "http-nio-81-exec-7" SEVERE:Memory usage is low, parachute is non existent, your system may start failing.
Exception in thread "http-nio-81-exec-5"
启动起不起来,或者起来了,一下就挂了。
可能是tomcat 内存调整了,但是jvm内存没调。只是怀疑哈。
个人这么处理的。加上环境变量 JAVA_TOOL_OPTIONS -Xmx1536m -XX:MaxPermSize=2048m -Xms1024m 。貌似就可以了。
或者尝试在注册表中options中追加 -XX:PermSize=512M
-XX:MaxPermSize=640m
-Xms800m
-Xmx800m
对应的配置也可以。
正式环境:
linux cataxxx.sh 加上
JAVA_OPTS="-Xms400m -Xmx400m -Xss512K -XX:PermSize=128m -XX:MaxPermSize=256m"
In many environments the command line is not readily accessible to start the application with necessary command-line options. This often arises with applications that use embedded VMs (meaning they use the Java
Native Interface (JNI) Invocation API to start the VM), or where the startup is deeply nested in scripts. In these environments the
variable can be useful to augment a command line.
When this environment variable is set, the
value of the environment variable to the options supplied in its
This environment variable allows you to specify the initialization of tools, specifically the launching of native or Java programming language agents using the
In the following example the environment variable is set so that the HPROF profiler is launched when the application is started:
This variable can also be used to augment the command line with other options for diagnostic purposes. For example, you can supply the
to specify a script or command to be executed when a fatal error occurs.
Since this environment variable is examined at the time the
used to augment the command line with options that would normally be handled by the launcher, for example, VM selection using the
For more information on
Tool Interface documentation.
http://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/envvars002.html
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Timer-0"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Timer-1"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "startQuertz_QuartzSchedulerThread"
错误,或者
SEVERE:Memory usage is low, parachute is non existent, your system may start failing.
Exception in thread "http-nio-81-exec-3" Exception in thread "ExpiresCacheCleaner Thread" Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1" SEVERE:Memory usage is low, parachute is non existent, your system may start failing.
Exception in thread "http-nio-81-exec-1" SEVERE:Memory usage is low, parachute is non existent, your system may start failing.
Exception in thread "http-nio-81-exec-7" SEVERE:Memory usage is low, parachute is non existent, your system may start failing.
Exception in thread "http-nio-81-exec-5"
启动起不起来,或者起来了,一下就挂了。
可能是tomcat 内存调整了,但是jvm内存没调。只是怀疑哈。
个人这么处理的。加上环境变量 JAVA_TOOL_OPTIONS -Xmx1536m -XX:MaxPermSize=2048m -Xms1024m 。貌似就可以了。
或者尝试在注册表中options中追加 -XX:PermSize=512M
-XX:MaxPermSize=640m
-Xms800m
-Xmx800m
对应的配置也可以。
正式环境:
linux cataxxx.sh 加上
JAVA_OPTS="-Xms400m -Xmx400m -Xss512K -XX:PermSize=128m -XX:MaxPermSize=256m"
The JAVA_TOOL_OPTIONS
Environment Variable
In many environments the command line is not readily accessible to start the application with necessary command-line options. This often arises with applications that use embedded VMs (meaning they use the JavaNative Interface (JNI) Invocation API to start the VM), or where the startup is deeply nested in scripts. In these environments the
JAVA_TOOL_OPTIONSenvironment
variable can be useful to augment a command line.
When this environment variable is set, the
JNI_CreateJavaVMfunction (in the JNI Invocation API) prepends the
value of the environment variable to the options supplied in its
JavaVMInitArgsargument.
Note: In some cases this option is disabled for security reasons (for example, on Oracle Solaris operating system this option is disabled when the effective user or group ID differs from the real ID). |
-agentlibor
-javaagentoptions.
In the following example the environment variable is set so that the HPROF profiler is launched when the application is started:
$ export JAVA_TOOL_OPTIONS="-agentlib:hprof"
This variable can also be used to augment the command line with other options for diagnostic purposes. For example, you can supply the
-XX:OnErroroption
to specify a script or command to be executed when a fatal error occurs.
Since this environment variable is examined at the time the
JNI_CreateJavaVMfunction is called, it cannot be
used to augment the command line with options that would normally be handled by the launcher, for example, VM selection using the
-clientoption or the
-serveroption.
For more information on
JAVA_TOOL_OPTIONSenvironment variable, see Java tool options from JVM
Tool Interface documentation.
http://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/envvars002.html
相关文章推荐
- 面试--Tomcat+一个请求的完整过程(76)
- Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds
- 免安装版Tomcat6.0启动方法
- Linux下Tomcat 启动报错touch
- Tomcat服务重启脚本
- Tomcat服务重启脚本
- Tomcat环境搭建及环境变量配置
- maven常用插件解析之Tomcat插件热部署
- 使用maven的tomcat插件实现webapp的自动部署
- 腾讯云Centos7安装Apache +MySQL+PHP +JDK +Tomcat
- tomcat 字符编码问题 URIEncoding="UTF-8"
- myeclipse导出war包,并把war部署tomcat上运行
- 在Linux服务器上配置多个Tomcat服务
- 一台linux操作系统上配置多台Tomcat服务
- java 服务器Tomcat环境搭建
- tomcat 配置多个虚拟域名访问
- Tomcat多个域名指向同一个项目
- 介绍一个不用重启tomcat完成地址映射的方法
- eclipse(Mars Release)启动tomcat时报异常Java.lang.OutOfMem:java.lang.OutOfMemoryError: PermGen space
- tomcat7的安装与配置