tomcat经常挂掉
这是hs_error_pid.log的日志内容,请大侠们帮我看看是什么原因
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 697320 bytes for Chunk::new
# Possible reasons:
# The system is out of physical RAM or swap space
# In 32 bit mode, the process size limit was hit
# Possible solutions:
# Reduce memory load on the system
# Increase physical memory or swap space
# Check if swap backing store is full
# Use 64 bit Java on a 64 bit OS
# Decrease Java heap size (-Xmx/-Xms)
# Decrease number of Java threads
# Decrease Java thread stack sizes (-Xss)
# Set larger code cache with -XX:ReservedCodeCacheSize=
# This output file may be truncated or incomplete.
#
# Out of Memory Error (allocation.cpp:328), pid=7536, tid=7744
#
# JRE version: 7.0_06-b24
# Java VM: Java HotSpot(TM) Server VM (23.2-b09 mixed mode windows-x86 )
# Core dump written. Default location: D:\Tomcat7\bin\hs_err_pid7536.mdmp
#

#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 697320 bytes for Chunk::new
# Possible reasons:
# The system is out of physical RAM or swap space
# In 32 bit mode, the process size limit was hit
# Possible solutions:
# Reduce memory load on the system
# Increase physical memory or swap space
# Check if swap backing store is full
# Use 64 bit Java on a 64 bit OS
# Decrease Java heap size (-Xmx/-Xms)
# Decrease number of Java threads
# Decrease Java thread stack sizes (-Xss)
# Set larger code cache with -XX:ReservedCodeCacheSize=
# This output file may be truncated or incomplete.
#
# Out of Memory Error (allocation.cpp:328), pid=7536, tid=7744
#
# JRE version: 7.0_06-b24
# Java VM: Java HotSpot(TM) Server VM (23.2-b09 mixed mode windows-x86 )
# Core dump written. Default location: D:\Tomcat7\bin\hs_err_pid7536.mdmp
#
...全文
相关推荐
Shell脚本定时监控tomcat,服务挂掉自动重启
Shell脚本定时监控tomcat,服务挂掉自动重启
Windows server利用批处理脚本判断端口启动tomcat的方法
本文主要介绍了如何在Windows Server环境中通过批处理脚本来解决Tomcat服务器不定时挂掉的问题,以保持业务数据的正常流通。以下是详细的步骤:1. 设置Tomcat环境变量: 在
java tomcat 监控程序
这可能涉及调用操作系统级别的命令来停止和启动Tomcat服务,或者利用Tomcat自身的管理API来实现平滑重启。4. **报警机制**:当程序挂掉并自动重启时,监控程序应具备发送报警的能力。
tomcat服务进程守护
描述中提到的“自动重启已挂掉的tomcat服务器,省去人工人力,保证服务器的正常运行”,意味着通过自动化机制,可以避免因为Tomcat崩溃导致的服务中断,同时减少管理员的维护工作量。
java启动tomcat
反之,则证明服务器挂掉。自动重启 Tomcat在 Tomcat 无响应时,我们将先将 Tomcat 相关的进程 Kill 掉,再写个重启 Tomcat 的方法。


