-
1193 votesanswersviews
处理“java.lang.OutOfMemoryError:PermGen space”错误
最近我在我的Web应用程序中遇到了这个错误: java.lang.OutOfMemoryError:PermGen空间 它是在Tomcat 6和JDK 1.6上运行的典型Hibernate / JPA IceFaces / JSF应用程序 . 显然,重新部署应用程序几次后就会发生这种情况 . 导致它的原因以及可以采取哪些措施来避免它?我该如何解决这个问题? -
2 votesanswersviews
Groovy更新导致PermGen中大量死亡的GroovyClassLoaders
我有一个Java 7项目,每n分钟由n个进程运行脚本 . 以下是运行脚本的代码示例 . ScheduledFuture scheduledFuture = scheduledService.scheduleAtFixedRate(new Runnable() { @Override public void run() { ... -
181 votesanswersviews
Maven构建中的“java.lang.OutOfMemoryError:PermGen space”[复制]
这个问题在这里已有答案: Dealing with “java.lang.OutOfMemoryError: PermGen space” error 32个答案 我在构建Maven项目时遇到了这个错误,我增加了MAVEN_OPTS,但是我发现了一些类似的帖子,但是他们引用了其他的东西 . 我该如何解决? The system is out of resources. Consult the ... -
3 votesanswersviews
理解堆上的静态和非静态方法表示之间的区别
我已经阅读了一些关于这个主题的帖子: How are instance methods stored static allocation in java - heap, stack and permanent generation where is a static method and a static variable stored in java. In heap or in s...