tomcat 7内存调大也起不来
来源:互联网 发布:h海南大学网络 编辑:程序博客网 时间:2024/05/20 13:07
类似
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"
错误,或者
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
对应的配置也可以。
正式环境:
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 Java Native Interface (JNI) Invocation API to start the VM), or where the startup is deeply nested in scripts. In these environments the JAVA_TOOL_OPTIONS
environment variable can be useful to augment a command line.
When this environment variable is set, the JNI_CreateJavaVM
function (in the JNI Invocation API) prepends the value of the environment variable to the options supplied in its JavaVMInitArgs
argument.
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).This environment variable allows you to specify the initialization of tools, specifically the launching of native or Java programming language agents using the -agentlib
or -javaagent
options. 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:OnError
option 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_CreateJavaVM
function 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 -client
option or the -server
option.
For more information on JAVA_TOOL_OPTIONS
environment variable, see Java tool options from JVM Tool Interface documentation.
http://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/envvars002.html
- tomcat 7内存调大也起不来
- Tomcat 7 内存设置
- tomcat内存
- tomcat 内存
- tomcat 内存
- Tomcat内存
- tomcat内存
- 修改tomcat默认内存tomcat
- tomcat内存配置(tomcat内存溢出)
- Tomcat内存 jvm内存分配
- Tomcat内存 jvm内存分配
- 增加Tomcat使用内存
- 增加tomcat的内存
- Tomcat JVM内存参数设置
- 增加Tomcat使用内存
- 设置TOMCAT的内存
- 增加Tomcat使用内存
- tomcat 设置jvm内存
- Ubuntu系统下解决SublimeText3中文输入
- 欢迎使用CSDN-markdown编辑器
- Mysql导入数据库的方法
- php7-nginx-composer 安装laravel
- 反射注解浅引
- tomcat 7内存调大也起不来
- 基于FFmpeg 和 OpenGL 的音视频合成+过渡特效【C++】
- Codeforces Round #386 (Div. 2) D. Green and Black Tea 数论+贪心
- JavaFX如何实现模态窗口
- 分布式架构的演变
- (写公式,解方程)LightOJ - 1062
- Android AsyncTask和Handler对比,ProgressBar的用法
- 在云服务器上部署项目(上)
- 创建Maven 父子工程