JEdit, and the java heap space!

Guys, I use JEdit...and to run it, the icon's target is:
c:\Program Files\jEdit 4.3pre2\jedit.jar"
The problem I have is that the java heap is only 64MB. How do I run JEdit and make the java heap 96MB or more at the same time??? I know how to make the heap bigger every time I run a program in cmd:
java -Xmx##m classfile
but how do I change it for when I run JEdit as above???
Thanks.

change the shortcut to be
java -Xmx512m -jar "c:\Program Files\jEdit 4.3pre2\jedit.jar"

Similar Messages

  • How to increase the Java Heap Space for a main method

    Hello all,
    after a given number of calculations inside a class with main-method, I get an OutOfMemoryError (Java Heap Size).
    So I'm just trying to increase the Heap Size Creator uses, but it won't work.
    After reading a lot of posts and online-articles, I tried the following:
    1) I changed the -Xms and -Xmx options (to 512m) both in
    $CREATOR/SunAppServer8/domains/creator/config/domain.xml and
    $CREATOR/etc/creator.conf (this file also points to the Creator built-in JDK)
    2) additionally I tried to start Creator from the console with the respective option:
    ./creator -J-Xmx512m
    The memory toolbar shows the right value, but when I use
    System.out.println("JVM maximum memory:\t"+Runtime.getRuntime().maxMemory()/1024+" KB\n");it always says 64 MB, no matter which option I chose in the config-files.
    So how can I increase this value?
    Regards,
    Felix
    Message was edited by:
    Felice
    Message was edited by:
    Felice

    Thank you very much,
    this was an important hint. Additionally I had to create a new "Java Class Library" project with a copy of the needed files (those that are not dependent on the Application Server). Then I could use the option you mentioned.
    Unfortunately, when I try to run the file with
    java -jar FILENAME.jarit won't work, because the archive is not complete: MANIFEST.MF lacks the main-class and all involved libraries.
    I managed to add the main-class attribute manually, but adding all library references seems to be very error-prone.
    So does anyone know if I did something wrong or if this is a bug of Creator?
    Regards,
    Felix

  • While generating the huge report getting Java Heap Space Error

    Hi All,
    We are using XML Publisher 5.6.2. we have to generate the huge report which contains more than 300 sql statements. Since our schema structure we can not reduce the queries. Now we are facing issue while generating the report. It takes lot of time and gives 'java heap space error'. We are using data template and RTF template for generating excel report.
    Can anybody help me to resolve the issue? or is there any other way to generate the huge reports?
    Thanks,

    Hi,
    I had seen the forum, but we had already adjusted the parameters in the oc4j "-XX:MaxPermSize=128m -Xmx512m" values to 4096. but still we are getting the java heap space error. since we increased the size of xmx value, XML Publisher occupies 61% of memory of the server. B'coz of this our other applications are getting affected.
    and also, since we are using XML Publisher 5.6.2, can you please assist us how to set the scalable property to 'true'.
    Thanks,
    Ramya.
    Edited by: user753355 on Aug 12, 2009 3:35 AM

  • Wily Introscope - The EM failed to start. Java heap space

    Dear SAP gurus,
    I just installed Instroscope Version 8.2.3.5 but I am getting the following error when I started with the command "./EMCtrl.sh start":
    10/13/11 08:37:51 AM UTC [ERROR] [Manager.TransactionTracer] Throwable exception updating the index java.lang.OutOfMemoryError: Java heap space
    10/13/11 08:37:51 AM UTC [ERROR] [Manager.Bootstrap] Load all Management Modules FAILED.
    10/13/11 08:37:51 AM UTC [ERROR] [Manager] The EM failed to start. Java heap space
    Therefore, it is not accessible using the Introscope Workstation.
    I check that ports 8081and 6001 are free.
    After I increased the heap space from 2G to 3G, I could access using Introscope Workstation (http://emhost:8081/workstation) obtaining the following error though:
    HTTP ERROR: 500
    /usr/sap/ccms/wilyintroscope/work/Jetty_0_0_0_0_8081_WebContent____.newrsn/jsp/org/apache/jsp/index_jsp.java (No such file or directory)
    RequestURI=/
    Caused by:
    java.io.FileNotFoundException: /usr/sap/ccms/wilyintroscope/work/Jetty_0_0_0_0_8081_WebContent____.newrsn/jsp/org/apache/jsp/index_jsp.java (No such file or directory)
    HOWEVER, this was only availabe for aprox 40 seconds, after this I got again the java heap space error (see last 4 lines):
    10/13/11 11:22:14 AM UTC [INFO] [Manager.SapPush] Startup successful
    10/13/11 11:22:14 AM UTC [INFO] [Manager.Extension] Succesfully loaded service
    10/13/11 11:22:14 AM UTC [INFO] [Manager.EMWebServer] EM webapps port: 8081
    10/13/11 11:22:14 AM UTC [INFO] [Manager.EMWebServer] EM max server threads: 100
    10/13/11 11:22:14 AM UTC [INFO] [Manager.EMWebServer] EM webapps directory: /usr/sap/ccms/wilyintroscope/webapps
    10/13/11 11:22:14 AM UTC [INFO] [Manager.EMWebServer] EM webapps checks for new webapps every 60 seconds
    10/13/11 11:22:14 AM UTC [INFO] [Manager.EMWebServer] Deployed web application: Introscope Configuration and Administration Help
    10/13/11 11:22:15 AM UTC [INFO] [Manager.EMWebServer] Deployed web application: Introscope User Guide Help
    10/13/11 11:22:15 AM UTC [INFO] [Manager.EMWebServer] Deployed web application: SAP Documentation
    10/13/11 11:22:16 AM UTC [INFO] [Manager.EMWebServer] Deployed web application: Introscope WebView
    10/13/11 11:22:23 AM UTC [INFO] [Manager.EMWebServer] Deployed web application: Introscope Online Documentation
    10/13/11 11:22:23 AM UTC [INFO] [Manager.EMWebServer] Deployed web application: CEM URL Adapter
    10/13/11 11:22:23 AM UTC [INFO] [Manager.EMWebServer] Deployed web application: Workstation WebStart
    10/13/11 11:23:07 AM UTC [ERROR] [Manager.Bootstrap] Load all Management Modules FAILED.
    10/13/11 11:23:07 AM UTC [ERROR] [Manager] The EM failed to start. Java heap space
    10/13/11 11:23:07 AM UTC [INFO] [Manager.EMWebServer] Shutting down EM Web Server...
    10/13/11 11:23:07 AM UTC [INFO] [Manager] Beginning orderly shutdown...
    Does anyone know how to avoid this error?is it necessary to keep on increasing the heap space?
    The note 723909 stands:
    "For 64 bit platforms (that means not only your OS but also your JDK supports 64 bit) we recommend using 2GB: -Xmx2048m  -Xms2048m"
    Please suggest how to go further with this issue.
    I am using SAP Solman 71 SPS3 on Linux on x86_64 64bit.
    Thanks in advance, Marc

    Hi Marc,
    Check if you have configured the JAVA heap space correctly, refer to KBA 1630229 depending on the OS you have to configure the java memory in different locations.
    Regards,
    Allam

  • Can you alter the JVM heap space size for all Windows users?

    Hi,
    I have used the "-Xmx" option to increase the Java Heap space for my Java application. This works fine, but all other users on my system still have the default heap space setting and I want them to have use an increased heap space as well. I cannot alter the JVM heap space at the command line since our Java application is started via an ActiveX bridge from a Windows application.
    So far I have found one potential, but not really good solution; I have figured out that I can copy the deployment.properties file containing the altered JVM heap setting from the "Application Data\Sun\Java\Deployment" folder in my own Windows "Documents and Settings" folder to the same folder of another user. However, this is not a really good solution since we are running a system with about 60 users and often new user accounts are created and sometimes people forget to copy the deployment.properties file.
    Does anyone know a better solution. I've tried to search the Windows registry or the JRE files for a default JVM heap space setting but I can't find it anywhere. Still on some systems the default is 64Mb and on others 96Mb, so I guess there must be a setting somewhere?

    The following is my eclipse.ini:
    -vmargs
    -Xms256m
    -Xmx512m
    -Dfuego.fstudio=true
    -DprodMode=preProduction
    -Dbea.home=C:\bea\albpm6.0\studio\..
    -Djava.endorsed.dirs=""
    -XX:PermSize=256M
    -XX:MaxNewSize=256M
    -XX:MaxPermSize=1024M
    but i think this configuration just effect the eclipse, not embed bpm engine. I also change the engine preference, increase the heap size, but engine crash as before.
    I want to change the jvm from jdk to jrockit, i hope any suggest.

  • Java Heap Space Error

    Hi,
    We are running SAP MII 12.0 on windows server 2003 SP1 installed on a virtual machine with 4GB RAM, Intel Xenon CPU E5504 @ 2.00 GHz.
    We started getting the Java Heap Space Error while executing a transaction which fetches about 200 rows. But now the error is quiet frequent and appears while trying to open or close the transactions or save trying to save data.
    I have edited the heap space in the config tool to 2048 but this has not helped. Not sure if this is of significance but the SAP R3 server being used is quiet slow and takes about 3 mins to return data when I run the BAPI on it. This resulted in the transaction timing out a few times before we started getting the error. Increasing the connection timeout and read timeout for the transaction has not helped.
    Please help me resolve this
    Thanks
    Maaz Ahmed

    The BAPI being used is BAPI_GOODSMVT_GETITEMS I am specifying the Material, Plant, Goods Mvt ranges, and a date range.
    I was informed that the QA R3 system is not among the best servers and the speeds would be better in production (under 3s).
    Also I have been looking at the sapmmc. Each time I restart the cluster or the server I get a series of messages or alerts. In these alerts I see a series (Content, Navigation, PRT, etc..) of health checks failing. And the last two errors are as below
    Object - Common Information
    Attribute - Failed to Start Application
    Description - 2 appl > 1 appl last reported value above threshold.
    and
    Object - Common Information
    Attribute - Failed to Start Application
    Description - 1 appl > 0 appl last reported value above threshold.
    I am able to launch the menu page after this and when i run the above mantioned BAPI I get the error
    Object - Memory Info
    Attribute - Usage Rate
    Description - 81% > 80% last reported value above threshold

  • Reset, empty, clean java heap space

    Hello!
    I am actually not a Java user but an R (statistical programming language) user. I use an R package which writes output
    to Excel sheets. The package uses Java to link between R and Excel. When we used the package to write our data to Excel
    R recently started to throw errors which after doing several tests we traced back to the java heap space.
    Our question is now whether it is possible to clear/empty/reset the java heap space using java on the command line or by
    starting an external programme? It is possible to start external programmes within R. So in case it would be possible to
    clean up the java heap space we basically could write a little script which we could start from R to fix our problem.
    Any help is very much appreciated.
    Best,
    Jo

    Hi,
    the problem is a bit tricky to describe. R provides packages u can use but you do not see the underlying code.
    In the manual of the package it says it's using java to write the data from R to excel spreadsheet. We currently
    writing objects which 20000 rows and 6-10 columns. It works fine for the first 2 or 3 files and then R
    throws an error. To figure out where the error comes from I created a dummy data set with 3000 rows and 6 columns
    and used the package to write the output to the excel sheet again and again in differently named tabs.
    As more output you write to the excel sheet as slower it gets and then at some point R throws an error.
    I tried different data set sizes and deleted excel sheets, created new ones to test different cases but the outcome
    was always the same... R does not directly say something like: java out of heap space but to us it is pretty clear
    when the heap space is reaching its limit something gets screwed up. If you write to the same excel sheet again and again
    but with breaks in between so the heap space has some time to empty itself it works fine. If you restart R and write to the same file
    it works.

  • Report error trace ![CDATA[java.lang.OutOfMemoryError: Java heap space

    Hi,
    I am getting the below error while trying to run any report in workspace
    <?xml version="1.0" encoding="UTF-8"?>
    <BpmResponse action="" type="error">
    <code>0</code>
    <desc>Java heap space</desc>
    <trace><![CDATA[java.lang.OutOfMemoryError: Java heap space
    ]]></trace>
    </BpmResponse>
    Looking for a qucik response!!!
    Thanks
    Ramya

    You are running out of memory. You can change the allocated java heap space for reporting if you haven't tried that already.
    Here is a thread regarding how to change the java heap space. Oracle recommends setting your -xmx to 1024.
    JVM Heap Size setting
    Hope this helps,
    DQ

  • When I try to load an image from the scanner, or from a file, into a bank deposit script, I get a message - "Error Java heap space". Need help to diagnose and fix this problem.

    I am running a script from my banking facility which asks me to load an image of the front and back of the check. I never had a problem before, but this time when I try to load the images either directly from the scanner, or from previously saved jpg files I get an error window message that says - Error Java heap space,
    Ed Marcato

    I am running a script from my banking facility which asks me to load an image of the front and back of the check. I never had a problem before, but this time when I try to load the images either directly from the scanner, or from previously saved jpg files I get an error window message that says - Error Java heap space,
    Ed Marcato

  • Crash and Java Heap Space

    Hi Everybody, since Yesterday, my Flash Builder 4 has a lot of crashes with the message "Java Heap Space". I tried changing FlashBuilder.ini file to:
    -Xms384m
    -Xmx1024m
    I changed also jvm.config in my /bin subfolder of my SDK to:
    java.args=-Xms384m -Xmx1024m -Dsun.io.useCanonCaches=false
    But nothing happened... I tried also removing and re-installing the builder with no success.
    I have Windows XP Professional 32-bit with 3GB RAM
    I have also a big .log file, if someone wants to see it, I can send it immediately...
    Thanks !!!
    Davide

    Now, afther changing the configuration parameters, Flash Builder uses 1,2 GB RAM and the whole CPU... but the project, when exported to release build, is more or less 3,5MB... What's the problem??? I tried uninstalling and installing again this morning...

  • JVM Java heap space Error || even with -Xms- and -Xmx commands

    hi all, i got a problem by allocating a very great boolean array.
    first of all, here is my testcode:
    public static void main(String[] args) {
              boolean[] testfield = new boolean[70000000];          
              while(true){
              //NOP     
         }as you see, i try to allocate an array with 70.000.000 boolean values - as 1 boolean may be represented as at least one physical bit we calculate the total amount of needed RAM-Space:
    70.000.000 bit / 8 = 8750000 byte
    8.750.000 byte = 8.75 MByte
    My System ist WinVista Ultimate 64-bit running on a Quadcore T2200 with 2GB-DDR3 RAM
    Looking in my Vista Ressourcemanager shows, that eclipse.exe reserves about 1.023 Mbyte....
    As IDE I use eclipse
    my eclipse.ini looks as follows:
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    256M
    -vmargs
    -Dosgi.requiredJavaVersion=1.5
    -Xms512m
    -Xmx1024m
    -XX:PermSize=512mby using following VMCommand "-XX:+PrintGCDetails" and running the above code the output displays:
    [GC [DefNew: 180K->63K(960K), 0.0008311 secs][Tenured: 43K->107K(4096K), 0.0060371 secs] 180K->107K(5056K), 0.0069249 secs] [Times: user=0.00 sys=0.00, real=0.01 secs]
    [Full GC [Tenured: 107K->105K(60544K), 0.0044835 secs] 107K->105K(61504K), [Perm : 17K->16K(12288K)], 0.0045553 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
    Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
         at termain.main(termain.java:15)
    Heap
    def new generation   total 4544K, used 163K [0x246a0000, 0x24b80000, 0x24b80000)
      eden space 4096K,   4% used [0x246a0000, 0x246c8fe0, 0x24aa0000)
      from space 448K,   0% used [0x24aa0000, 0x24aa0000, 0x24b10000)
      to   space 448K,   0% used [0x24b10000, 0x24b10000, 0x24b80000)
    tenured generation   total 60544K, used 105K [0x24b80000, 0x286a0000, 0x286a0000)
       the space 60544K,   0% used [0x24b80000, 0x24b9a420, 0x24b9a600, 0x286a0000)
    compacting perm gen  total 12288K, used 16K [0x286a0000, 0x292a0000, 0x2c6a0000)
       the space 12288K,   0% used [0x286a0000, 0x286a41c0, 0x286a4200, 0x292a0000)
        ro space 8192K,  62% used [0x2c6a0000, 0x2cba2ba0, 0x2cba2c00, 0x2cea0000)
        rw space 12288K,  52% used [0x2cea0000, 0x2d4e88e0, 0x2d4e8a00, 0x2daa0000)so can anyone tell me please, how i manage to allocate bigger arrays? or where at least is the problem?
    Originally i was thinking like that way: Integer.MAXVALUE = (2^32)-1
    => biggest index an array can have
    => biggest allocation possible with ints weights (((2^32)-^1)/8)/1000*1000 = (round) 537 MByte < 2GByte => everything fine .... but it seems like not :-(
    When i try to allocate 60.0000.000 it works fine....but that is far not enough :-&
    thank you very much for your helping answers!

    The Sun Java virtual machine stores booleans as bytes, not bits, so for an array of 70 million booleans you need 70 million bytes, plus 8 bytes for the object header, and 4 bytes for the array length.
    I suspect that your eclipse.ini controls the JVM running the Eclipse IDE, not the JVM running your application. Note that in the -XX:+PrintGCDetails output at the end, it shows you running out of memory with 4MB of young generation and 60MB of old generation. That's the default configuration, as if you hadn't specified -Xms and -Xmx.
    The array of 60 million booleans only requires 60 million bytes (plus overhead), which fits in the default old generation.
    I think you need to put the -Xms and -Xmx in the same place you put the -XX:+PrintGCDetails, since that does seem to display information about the JVM running your application, not the JVM running Eclipse.

  • 1) OutOfMemoryError: Java heap space 2) Could not create the JVM

    Hi guys!
    I'm having a lot of memory problems with the java virtual machine and I really need to fix them as soon as I can :(
    I was running an heavy application on Eclipse and at the end it stopped saying:
    Exception in thread "main" java.lang.OutOfMemoryError: Java heap space so I tried to enlarge the memory heap space in various ways... editing eclipse.ini (but I cannot go over a certain quantity), trying to change some parameters as:
    -vmargs -XX:MaxPermSize=<memory size>or to launch a jar of my application using :
    Java –jar –Xms1024M –Xmx3000M jarnameAnd now the error I got is:
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine.I just don't know what to do!
    I'm using a workstation but I don't have it right now in front of me... it should be a 4 core xeon-64bit having 8 giga of ram, under windows vista.
    do you have any suggestions?
    many many thanks!
    lou

    loucat wrote:
    I don't know if it requires 3GB, I just know the default memory is not enough... I have to load an index (a Lucene-based one) made up of almost 4 GB of images... I cannot change anything of the code about it :(
    Should I have to install a new java version downloading it from this page?
    http://www.java.com/en/download/faq/java_win64bit.xml
    I would download the 64 bit version from this page:
    [http://java.sun.com/javase/downloads/widget/jdk6.jsp]
    .. but you should probable be able to find it on java.com as well.

  • Netbeans profiler and "java.lang.OutOfMemoryError: Java heap space"

    I have a swing application. When I run this program, I get java.lang.OutOfMemoryError: Java heap space periodically.
    I am using the netbeans profiler to figure out how my heap size is increasing and whether or not I have any memory leaks. What I see is that I have lots of int[] getting generated. When I take the snapshot and look at the allocation stack traces, I cannot find the packages in my code at all. I see classes in java.awt.image.*, sun.awt.image.*, javax.swing.*, etc., but nothing referring to the classes I have developed. What could be wrong and how come I do not see anything referring to my code so that I can fix it?

    Take a look here.
    It seems that you may have a similar situation. If you read through, you'll see that the number of surviving generations gives an indication of where to look.

  • BI XML Publiser Issue java langOutOfMemoryError Java heap space

    Hi
    I am getting 'java.lang.OutOfMemoryError: Java heap space' error in XML publisher report. Just i am running 15MB data report still its giving OutOfmemory issue.
    Please help on this.
    [5/22/12 9:08:00 AM] [98639:RT12903275] XML Publisher post-processing action complete.
    [5/22/12 9:08:01 AM] [98639:RT12903275] Completed post-processing actions for request 12903275.
    [5/22/12 10:20:15 AM] [OPPServiceThread1] Post-processing request 12903281.
    [5/22/12 10:20:19 AM] [98639:RT12903281] Executing post-processing actions for request 12903281.
    [5/22/12 10:20:19 AM] [98639:RT12903281] Starting XML Publisher post-processing action.
    [5/22/12 10:20:19 AM] [98639:RT12903281]
    Template code: XXGFS_AP_APMCGRN
    Template app: XXGFS_AP
    Language: en
    Territory: US
    Output type: EXCEL
    Exception: java.lang.OutOfMemoryError: Java heap space
    java.lang.OutOfMemoryError: Java heap space
         at oracle.jdbc.dbaccess.DBItem.allocBuffer(DBItem.java:204)
         at oracle.jdbc.dbaccess.DBItem.allocBuffer(DBItem.java:232)
         at oracle.jdbc.dbaccess.DBDataSetImpl._allocItemsAndBuffers(DBDataSetImpl.java:300)
         at oracle.jdbc.dbaccess.DBDataSetImpl._allocDataAndItems(DBDataSetImpl.java:261)
         at oracle.jdbc.dbaccess.DBDataSetImpl.setType(DBDataSetImpl.java:2068)
         at oracle.jdbc.dbaccess.DBDataSetImpl.setType(DBDataSetImpl.java:1951)
         at oracle.jdbc.driver.OracleCallableStatement.registerOutParameterBytes(OracleCallableStatement.java:278)
         at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(OracleCallableStatement.java:402)
         at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(OracleCallableStatement.java:477)
         at oracle.apps.fnd.cp.gsm.GenCartComm.getQueueMessage(GenCartComm.java:185)
         at oracle.apps.fnd.cp.gsf.GSMStateMonitor.waitForNextEvent(GSMStateMonitor.java:95)
         at oracle.apps.fnd.cp.gsf.GSMServiceController.mainLoop(GSMServiceController.java:236)
         at oracle.apps.fnd.cp.gsf.BaseServiceController.run(BaseServiceController.java:71)
         at java.lang.Thread.run(Thread.java:619)
    Exception in thread "Cache Stats Writer" java.lang.OutOfMemoryError: GC overhead limit exceeded
    Exception in thread "OPPAQMON:98639" java.lang.OutOfMemoryError: Java heap space
         at oracle.jdbc.dbaccess.DBItem.allocBuffer(DBItem.java:204)
         at oracle.jdbc.dbaccess.DBItem.allocBuffer(DBItem.java:232)
         at oracle.jdbc.dbaccess.DBDataSetImpl._allocItemsAndBuffers(DBDataSetImpl.java:300)
         at oracle.jdbc.dbaccess.DBDataSetImpl._allocDataAndItems(DBDataSetImpl.java:261)
         at oracle.jdbc.dbaccess.DBDataSetImpl.setType(DBDataSetImpl.java:2068)
         at oracle.jdbc.dbaccess.DBDataSetImpl.setType(DBDataSetImpl.java:1951)
         at oracle.jdbc.driver.OracleCallableStatement.registerOutParameterBytes(OracleCallableStatement.java:278)
         at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(OracleCallableStatement.java:402)
         at oracle.apps.fnd.cp.opp.OPPAQMonitor.waitForMessage(OPPAQMonitor.java:423)
         at oracle.apps.fnd.cp.opp.OPPAQMonitor.run(OPPAQMonitor.java:113)
         at java.lang.Thread.run(Thread.java:619)
    [5/22/12 10:24:36 AM] [UNEXPECTED] [98639:RT12903281] java.lang.OutOfMemoryError: Java heap space

    user972966 wrote:
    There are two tables (tableA, tableB) in two different databases. They both have almost same schema/structure. There is mapping between tables on their columns.
    I need to develop a Java application to compare data value between these two tables for a time frame (for example one day) and find missing records or mismatch data.
    The volume of data, even for one day, is huge; almost 70M, 100M. Do you mean this many records? or this many MB. either way they are not that big for Java. If you have collections of up to 2 billion entries, you won't have a problem.
    >
    I have tried to use Thread to split the comparison process in 10 threads. Each thread is fetching portion of data from both tables (for example 7M each) and processing portion them. The issue that I am facing is, I am getting following exception after running:I would suggest you get the program working with one thread first. You will find this is simpler and possibly even faster. Having 10 threads isn't guarenteed to be faster.
    >
    To compare the data, I am fetching data from tableA and add it into List<MyDataObject> listA (the MyDataObject represent a one row data. It is a java bean) and then I am fetching data from tableB and add it into List<MyDataObject> listB
    And then I compare the lists.
    It seems there is limitation in size of List and I cannot add many elements to a List object, it’ll throws Out of Memory exception. The limit is 2^31-1. However an Out of Memory error means what it says. You are out of heap space, so you need to either increase it, or use less memory.
    >
    This method works for small volume, but for large one I get that exceptionIs there any reason you cannot divide the problem so you can process a small volume at a time?

  • Java heap space error: OutOfMemoryError

    Hi,
    We are getting below error when we XML Publisher report.
    Oracle XML Publisher version is: 5.6.3
    We have followed below things to get rid off this error but there is no success.
    Log in as XML Publisher Administrator.
    Select Templates, then query up the Template for your report.
    Select Edit Configuration:
    Under FO Processing
    Use XML Publisher's XSLT processor set to True
    Enable scalable feature of XSLT processor set to True
    Enable XSLT runtime optimization set to True.
    Set the JVM Heap size using following SQL query
    SQL> update FND_CP_SERVICES
    set DEVELOPER_PARAMETERS =
    'J:oracle.apps.fnd.cp.gsf.GSMServiceController:-mx2048m'
    where SERVICE_ID =
    (select MANAGER_TYPE
    from FND_CONCURRENT_QUEUES
    where CONCURRENT_QUEUE_NAME = 'FNDCPOPP');
    Set the following properties from XML Publisher Administration
    Responsibility=>Administration UI
    General => Temporary directory => \tmp
    directory tmp has full read and write access
    After above steps performed, bounced CM but still getting below error.
    Please provide your valuable suggestions or work arounds on this issue.
    Complete error is as below:
    [122613_114019363][][EXCEPTION] [DEBUG]  [sun.cpu.endian]:[little]
    [122613_114019363][][EXCEPTION] [DEBUG]  [sun.cpu.isalist]:[]
    --XDOException
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:677)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:425)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:244)
    at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:182)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
    at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
    at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
    at oracle.apps.xdo.oa.cp.JCP4XMLPublisher.runProgram(JCP4XMLPublisher.java:684)
    at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    Caused by: java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Arrays.java:2882)
    at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
    at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
    at java.lang.StringBuffer.append(StringBuffer.java:224)
    at oracle.xdo.parser.v2.XMLNSNode.getText(XMLNSNode.java:741)
    at oracle.xdo.parser.v2.XMLNSNode.getText(XMLNSNode.java:739)
    at oracle.xdo.parser.v2.XMLNSNode.getText(XMLNSNode.java:739)
    at oracle.xdo.parser.v2.XSLExprItem.getStringValue(XSLExprItem.java:318)
    at oracle.xdo.parser.v2.XSLExprItem.compareVal(XSLExprItem.java:445)
    at oracle.xdo.parser.v2.XSLExprValue.compare(XSLExprValue.java:881)
    at oracle.xdo.parser.v2.ComparisonExpr.evaluate(XSLExpr.java:1469)
    at oracle.xdo.parser.v2.XSLCondition.testCondition(XSLCondition.java:185)
    at oracle.xdo.parser.v2.XSLCondition.processAction(XSLCondition.java:165)
    at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
    at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
    at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
    at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
    at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
    at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
    at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
    at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
    at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
    at oracle.xdo.parser.v2.XSLTemplate.processAction(XSLTemplate.java:191)
    at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:512)
    at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:489)
    at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:271)
    at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:155)
    at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:192)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)

    1. Have you tried also with 'mx1024m' ?
    2. Have you run CMCLEAN ?
    3. What are these profiles set to:
    Concurrent:OPP Process Timeout
    Concurrent:OPP Response Timeout    
    Thank you
    Eugen

Maybe you are looking for

  • My computer freezes when i try to restart from bootcamp. What's the problem?

    I have a Macbook Pro (i think 2010 generation), that I had windows 7 installed on boot camp. Now I have Mac OS X Lion installed. I don't remember if I restarted from Windows 7 after installing Lion or not. Now the problem is I want to restart from Wi

  • How do I create a multi-coloured super-sized chessboard?

    Basically, I want to create a 72 by 72 chessboard. Instead of 2 colours, it will be 6 colours. And instead of it being in a repeating pattern, the colours need to be arranged in a specific order - I have the code for this in Excel, but can easily con

  • Problem with action listener

    hello the problem in my code is that i defined actionlistener for a button but it does not do what it should do . it throws an error in the console and i think my code is 100% correct what is the problem please help me this is the codewith import jav

  • Site won't display in IE, need help BAD...

    Heya, My website http://www.firetree.us is not displaying at all in IE7 (possibly IE6 too) but unfortunately I don't have a machine I can test it in. I'm really in need of some help because it works perfectly in Safari, FF PC & Mac but IE doesn't dis

  • Podcast tracks in playlists

    it appears to be the case that if you add podcast tracks to a playlist and set the playlist to shuffle, the podcast tracks are skipped. is there any way around this? can i reformat the podcast tracks to that they'll play randomly in playlists like ot