java.lang.OutOfMemoryError: Java heap space Exception

2010-03-29  来源:本站原创  分类:Java  人气:673 

Project to increase the amount of data today after a run, reported that such an exception:
java.lang.OutOfMemoryError: Java heap space

Search the web a bit, the original virtual machine is the jvm default Heap size of the problem. Heap size is 64M, you can set up to achieve their maximum and minimum values. The main method of setting a few.
1. You can change the system environment variables in windows with JAVA_OPTS =- Xms64m-Xmx512m
2, If you are using tomcat, in the windows, it can be in the
C: \ tomcat5.5.9 \ bin \ catalina.bat add:
set JAVA_OPTS =- Xms64m-Xmx256m
Location: rem Guess CATALINA_HOME if not defined the line right underneath.
3. If it is linux system
Linux at (tomcat_home) / bin / catalina.sh in front, plus
set JAVA_OPTS = '-Xms64-Xmx512'

相关文章
  • java.lang.OutOfMemoryError: Java heap space Exception 2010-03-29

    Project to increase the amount of data today after a run, reported that such an exception: java.lang.OutOfMemoryError: Java heap space Search the web a bit, the original virtual machine is the jvm default Heap size of the problem. Heap size is 64M, y

  • java.lang.OutOfMemoryError: Java heap space error and deal with Office 2009-09-24

    The following is from the Internet to find space on the heap overflow error solution: java.lang.OutOfMemoryError: Java heap space =================================================== Java programs use a lot of queries from the database when the abnorm

  • java.lang.OutOfMemoryError: Java heap space 2010-03-29

    Editor: [http://hi.baidu.com/saint13/blog/item/e0705a959616b80e7bf4808f.html] java.lang.OutOfMemoryError: Java heap space With the eclipse development, met java.lang.OutOfMemoryError: Java heap space Exception Solution: 1.window-> preferences-> java

  • java.lang.OutOfMemoryError: Java heap space error and Treatment 2010-04-12

    java.lang.OutOfMemoryError: Java heap space ================================================== = Using the Java program from the database query exception when large amounts of data: java.lang.OutOfMemoryError: Java heap space If the JVM in 98% of the

  • java.lang.OutOfMemoryError: Java heap space + myeclipse tomcat startup allocated share of the memory size 2010-06-30

    / / First check the program have limited him to death cycle The main problem is the problem java.lang.OutOfMemoryError: Java heap space caused. First time since this issue, raised other problems. A search on the Internet may be set too small JAVA sta

  • java.lang.OutOfMemoryError: Java heap space + myeclipse tomcat start in the share allocated memory size (transfer) 2010-12-31

    If you want to start myeclipse, the above modification does not work, can be set as follows: Myeclipse-> preferences-> myeclipse-> servers-> tomcat-> tomcat ×.×-> JDK panel Optional Java VM arguments to add:-Xmx1024M-Xms512M-XX: MaxPermS

  • java.lang.OutOfMemoryError: Java heap space错误及处理办 2014-03-24

    java.lang.OutOfMemoryError: Java heap space =================================================== 使用Java程序从数据库中查询大量的数据时出现异常: java.lang.OutOfMemoryError: Java heap space 在JVM中如果98%的时间是用于GC且可用的 Heap size 不足2%的时候将抛出此异常信息. JVM堆的设置是指java程序运行过程中JVM可以调配使用的内存空

  • java.lang.OutOfMemoryError: Java heap space错误及处理办法(收集整理.转) 2014-04-15

    以下是从网上找到的关于堆空间溢出的错误解决办法: java.lang.OutOfMemoryError: Java heap space =================================================== 使用Java程序从数据库中查询大量的数据时出现异常: java.lang.OutOfMemoryError: Java heap space 在JVM中如果98%的时间是用于GC且可用的 Heap size 不足2%的时候将抛出此异常信息. JVM堆的设置是

  • java.lang.OutOfMemoryError: Java heap space anomaly 2009-10-20

    Jin made the most of a website on tourism, but in the process of doing, encountered some problems, with a relatively typical, let us first compare the pain of the error, published in the proceedings up to the server after a few personal visit to the

  • java.lang.OutOfMemoryError: Java heap space solutions 2010-04-08

    eclipse java.lang.OutOfMemoryError: Java heap space solutions Set jvm startup parameters in a size, because their need to run eclipse jvm, so eclipse.ini in size is not set jvm to run a particular program, used when the size of the jvm, and specific

  • eclipse java.lang.OutOfMemoryError: Java heap space solutions 2010-06-30

    eclipse java.lang.OutOfMemoryError: Java heap space solutions, November 24, 2008 at 01:57 eclipse on Monday, has set the jvm startup parameters in the size, because their need to run eclipse jvm, so where to set the jvm size eclipse.ini not specifica

  • Hudson: java.lang.OutOfMemoryError: Java heap space error 2010-09-27

    Run hudson, the use cobertura generate coverage reports, when run to the final report will be: FATAL: Java heap space java.lang.OutOfMemoryError: Java heap space Platform in the Hudson job running under the Java Options corresponding with-Xms128m-Xmx

  • eclipse的怪问题.background indexer crash recovery .java.lang.OutOfMemoryError: Java heap space 2010-11-19

    好久没用eclipse了,今天居然启动不了.一开始就出现启动不了的那个参数错误. 我就奇了怪了,虽然有个把月没用了,没动它怎么也罢工了.不解啊. 网上找了资料说eclipse ini的启动参数那个内存设置的地方不用横杠,试了下改成: -showsplash org.eclipse.platform --launcher.XXMaxPermSize 512M -vmargs -Dosgi.requiredJavaVersion=1.5 Xms256m Xmx768m 原来是-xms256m -Xm

  • java.lang.OutOfMemoryError: Java heap space解决方法 2013-11-07

    引起java.lang.OutOfMemoryError: Java heap space异常,可能是由JAVA的堆栈设置太小的原因 根据网上的答案大致有以下两种解决方法: 1.在D:/apache-tomcat-6.0.18/bin/catalina.bat最前面加入:set JAVA_OPTS=-Xms384m -Xmx384m 注意:只有startup.bat启动tomcat,设置才能生效,如果利用windows的系统服务启动tomcat服务,上面的设置就不生效了, 就是说set JAVA

  • java.lang.OutOfMemoryError: Java heap space 的解决方法 2015-01-23

    关键字: tomcat outofmemoryerror permgen space java heap space 最近在熟悉一个开发了有几年的项目,需要把数据库从mysql移植到oracle,首先把jdbc 的连接指向mysql,打包放到tomcat里面,可以跑起来,没有问题,可是当把jdbc连接指向oracle的时候,tomcat就连续抛 java.lang.OutOfMemoryError的错误,上网google了一下,了解了一下tomcat的运行机制,也解决了问题,share出来,以备

  • java.lang.OutOfMemoryError: Java heap space 解决方法 2015-03-04

    java.lang.OutOfMemoryError: Java heap space 解决方法(我使用的是tomcat下解决) 这个问题的根源是jvm虚拟机的默认Heap大小是64M,可以通过设置其最大和最小值来实现.设置的方法主要是几个. 1.可以在windows 更改系统环境变量 加上JAVA_OPTS=-Xms128m -Xmx512m 2,如果用的tomcat,在windows下,可以在 C:\tomcat7.0\bin\catalina.bat 中加上: set JAVA_OPTS=

  • java.lang.OutOfMemoryError: Java heap spac 2010-09-25

    2010-0-9-25 The exception java.lang.OutOfMemoryError: Java heap spac Memory use: 1. Can not be over-reliance on GC 2. Monitoring the situation of memory --- learning of others maxMemory () This method returns the java virtual machine (the process) ca

  • java.lang.OutOfMemoryError: Java heap space solution 2010-03-21

    Explained: Heap size settings JVM heap setting refers to the java program is running during the JVM memory space can be used to deploy the settings. JVM at startup time will be automatically set Heap size of the value of its initial space (ie-Xms) is

  • tomcat in java.lang.OutOfMemoryError: Java heap space Exception Handling 2010-12-24

    Reprinted: http://ajava.org/exep/java/15965.html A, Heap size JVM heap setting is the java program is running JVM memory space can be used to deploy the settings. JVM at startup automatically set Heap size value The initial space (ie-Xms) is the phys

  • java.lang.OutOfMemoryError: Java heap space Exception solution 2010-06-08

    Myeclipse-> preferences-> myeclipse-> servers-> tomcat-> tomcat ×.×-> JDK Panel Optional Java VM arguments add -Xmx512M-Xms256M-XX: MaxPermSize = 256m can