怀疑他给你的内存不足以支撑你的系统运行,就是运营商给你的java虚拟机运行的最小和最大内存设置太小。你可以改小本地环境的虚拟机内存试试会不会有这个问题。
解决方案 »
- springmvc的例子在调用action时spring注入成功,但是在访问时注入的东西是null
- 关于表单设计器
- 几个SQL问题,请教!!
- 会 hibernate search 的进来看下 紧急
- 急!!如果打包成为cab包??
- Hibernate存储过程调用报错,帮忙查找(急)
- 附件问题,本来附件上传到系统发布目录下面的某个目录中,但随着运行时间长,系统变的臃肿,即附件上传的太大,太多。问题是想把附件从发布目录分离出来。
- Java族的高级问题交流
- 对于.net的System.Web.HttpRuntime.Cache我们JAVA的对策是什么?我怎么没看到过缓存,难道用APACHE对
- 关于make Ejb工程的一个问题
- Hibernate
- USSD实现跳转页面功能
在java中,堆(heap)是对象被创建后所驻留的内存区。 //获取堆的当前大小,单位为字节(Byte),下同
long heapSize = Runtime.getRuntime().totalMemory();
// 获取堆内存的最大值,堆所占用的内存不能超过这个值.
// 否则将导致异常(OutOfMemoryException)
long heapMaxSize = Runtime.getRuntime().maxMemory();
// 获取堆中空闲内存的大小. 这个值会随着垃圾回收(GC)而增加, // 也会随着新对象的创建而减小
long heapFreeSize = Runtime.getRuntime().freeMemory();
Exception in thread "TP-Processor5" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor1" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor12" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor10" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor9" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor11" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor16" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor14" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor15" Exception in thread "TP-Processor13" java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor20" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor18" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor19" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor17" java.lang.OutOfMemoryError: PermGen space
Exception in thread "cn.js.fan.kernel.Scheduler" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor24" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor23" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor21" Exception in thread "TP-Processor22" java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor28" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor27" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor26" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor25" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor32" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor31" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor30" java.lang.OutOfMemoryError: PermGen space
一段溢出代码 好像是数据库的内存溢出 会不会是数据库连接数有限制的问题
我自己的机器上确实没有这个问题
在运行是加入下面这几个参数试试。
-XX:PermSize=64M
-XX:MaxPermSize=128M在网上找了一段解释:
PermGen space的全称是Permanent Generation space,是指内存的永久保存区域,这块内存主要是存放Class和Meta信息的,Class在被Loader时就会被放到PermGen space中,它和存放类实例(Instance)的Heap区域不同,GC(Garbage Collection)不会在主程序运行期对PermGen space进行清理,所以如果APP会LOAD很多CLASS的话,就很可能出现PermGen space错误,这种错误常见在web服务器对JSP进行pre compile的时候。有些网页说得很详细:
http://www.wujianrong.com/archives/2006/12/javalangoutofmemoryerror_permg.html
http://www.totodotnet.net/2007/08/15/outofmemory%ef%bc%9apermgen-space%e5%bc%82%e5%b8%b8%e7%9a%84%e5%a4%84%e7%90%86%e5%92%8c%e5%88%86%e6%9e%90/