一个Java的Web应用出现了out of memory的问题
首先尝试在Windows服务器上企图设置Tomcat的Heap Size,添加了setenv.bat以后启动service。高高兴的去测试程序了,结果然并卵。查询了一遍发现Windows service的heap size设置居然和Linux差别很大。。。正确的做法是找到Tomcat8w.exe双击后,出现以下界面可以设置。
https://stackoverflow.com/questions/6225682/passing-jvm-arguments-to-tomcat-when-running-as-a-service
posted @ 2018-11-16 17:00
代码禅
阅读(408)
评论(0)
推荐(0)