Java heap problem

Hi.
I have a question about objects in session scope.
I have created an object which holds a grid (a matrix of 2046 elements of HtmlnputText). At the beginning everything works ok, but later when several users create this matrix populating from database several times I get a java heap error. Reading several documents I think the object created are never released from memory so I don't know how to focus this stuff.
I have changed the scope of the object to resquest and the behaviour is the same..
Any comments about this?
thanks
PD: I use tomcat 6.0.x

Hi,
thanks both for comments.
I have no access to JVM, so I can't change it.
About the logic I think the problem is the GC is not working, I mean. when I get the recordset from database I make something like this:
Grid grid = new Grid(myData);
myData is an object populated from the recordset and I have defined the beans in request scope (not in session scope).
so everytime I make this, I lose the reference for the old Grid but I think this remains in memory so, when the application is running for some time it collapse and I get a java heap memory error. I'm not sure but I think that is the behaviour. Am I wrong?
Anyway I'll try with jmeter.
Thanks
greetings

Similar Messages

  • JAVA UFL java-heap problem

    Hi,
    Outline
    I have developed a User Function Library (UFL) in Java to Internationalize the reports. I have followed the guide provided by BusinessObject: http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/20d050fc-6464-2b10-88aa-a31e24c4febf&overridelayout=true
    System Specifications:
    Windows XP
    Intel Pentium 4 CPU 3.00GHz
    Memory: 3 GB (RAM) 
    Crystal Reports: 2008  version 12.1.3.1028
    Java: JDK 1.6.0.13
    Problem
    Run into a Java heap space when the report is refreshing.
    Description.
    I open the report and click the refresh button. The report starts to quickly fetch data but then starts to slow down, it comes to the point where it stops fetching data. After a few seconds, the Formula Editor pops-up, highlights the Internationalization formula and then another small window titled "Crystal Reports" pops up with the message "Java heap space".
    Comments
    I know that I am running into a memory problem. I have check my memory in the Wondows Task Manager under the tab Performance and I see that my memory never reaches the maximum amount I have. I have also tried changing the Java versions, have also tried the UFL with Crystal reports XI and also tried with different computers all with which I get the same problem.
    Has anyone encountered the same problem, if so, how were you able to fix it?
    Thank you very much for your help.
    Valentine

    Valentine,
    How big is the report? I had a similar problem when trying to produce a large report, although it did not have any UFL reference.
    I increased the JVM stack size with the "-Xms32m -Xmx256m" flags.
    But for the life of me I cannot remember where I set this from running within Eclipse. I will have a look around and see
    if I can remember, but in the mean time it might help.
    Darren

  • Java heap problem, cant set heapsize

    Hi,
    I am currently facing problem of java heap. With large number of Objects in ArrayList ( approx 70000), i am getting exception from java heap.
    Current task: i am collecting records from database, mysql 5.5, where i have one table about 4 million entries. I am so far successful with fetching records while setting MaxRow() ( although i am failed to use setFetchSize()). Whenever function tries to finish its processing and going to put records in ArrayList. JAva throws an Memory ( Java heap Exception). I like to know your ideas to have a concerete solution. Necessary information related to my development enviourment and solutions is as follows.
    <p>
    IDE: Eclipse europa
    Server: Tomcat 6
    Database: mysql 5.5
    Operating System: Windows XP
    </p>
    <p>
    Tried Solutions: I have tried to set Java heap size at Tomcat upto 3gb but it do not work.
    Source Code :
    <br />
    </p>
    // calcuate count(*) for desired query.<br />
    QueryResultSize = getEvalautionQueryResults(true, 0, user, movie,<br />
    board, hoster, from, until);<br />
    <br />
    if (QueryResultSize > 0) {<br />
    <br />
    // recall query till all results( query result size) are not<br />
    // loaded in links list<br />
    try {<br />
    while (counter < QueryResultSize) {<br />
    <br />
    EvaluationObject eval;<br />
    String q = "";<br />
    String query = this.getEvaluationQueryString(false, user,<br />
    movie, board, hoster, from, until);<br />
    if (counter < fetchsize) {<br />
    <br />
    q = query + " and fetchid > 0 order by fetchid;";<br />
    <br />
    } else {<br />
    <br />
    q = query + " and fetchid > "<br />
    + Long.toString(lastFetchId)<br />
    + " order by fetchid;";<br />
    }<br />
    // just for test preparedstatement execution is called here<br />
    pstmt = conn.prepareStatement(q);<br />
    pstmt.setMaxRows(fetchsize);<br />
    ResultSet rs = pstmt.executeQuery();<br />
    <br />
    while (rs.next()) {<br />
    <br />
    ResultSet nextRs;<br />
    String boardd = "";<br />
    URI uri = null;<br />
    try {<br />
    lastFetchId = Long.parseLong(rs<br />
    .getString("fetchid"));<br />
    boardd = rs.getString("board");<br />
    uri = URI.create(boardd);<br />
    } else {<br />
    <br />
    shortBoard = "";<br />
    }<br />
    <br />
    }<br />
    query = "SELECT * FROM board WHERE board='http://"<br />
    + shortBoard + "' OR board='http://www."<br />
    + shortBoard + "';";<br />
    if (statement.isClosed()) {<br />
    statement = conn.createStatement();<br />
    }<br />
    nextRs = statement.executeQuery(query);<br />
    if (nextRs.next()) {<br />
    eval = new EvaluationObject()
    links.add(eval);<br />
    } else {<br />
    eval = new EvaluationObject()
    links.add(eval);<br />
    }<br />
    if (counter > fetchsize)<br />
    if (isCounterChanged) {<br />
    model.notifyLogListener(null, counter<br />
    + " Links has been copied", "",<br />
    LogEvent.ERROREVENT);<br />
    System.out.println(counter<br />
    + " Links has been copied");<br />
    isCounterChanged = false;<br />
    }<br />
    }<br />
    // because each time resultset loads 5000 results<br />
    counter += fetchsize;<br />
    isCounterChanged = true;<br />
    <br />
    }<br />
    <br />
    } catch (SQLException e) {<br />
    e.printStackTrace();<br />
    model.notifyLogListener(null, e.getMessage(), "",<br />
    LogEvent.ERROREVENT);<br />
    }<br />
    <br />
    <p>
    <br />Regards,
    Romi
    PS: Thanks in advance
    I am not quite sure whether it is right place to post the question. If it is not and you know the answer ....... please dont hesitate to reply.
    </p>

    With large number of Objects in ArrayList ( approx 70000),By itself that isn't that big. If each object was 1000 bytes then that would only be 70 meg.
    Tried Solutions: I have tried to set Java heap size at Tomcat upto 3gb but it do not work. If you set it correctly and it did not change anything in how your application worked then it is a bug in your code.
    You posted your code but however you did it is wrong and you need to use the forum correctly using code tags to post the code so it is readable.

  • 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

  • Problem while deploying LCAs : Java heap error

    I am deploying a LCA archve thru ant scripts.The erroe coming is like
    run:
         [echo] LC Archives creation and deployment -- In the main ()
         [java] Create and deploy LC archive init() called...
         [java] Nov 11, 2009 6:09:20 PM com.adobe.idp.applicationmanager.client.Appl
    icationManagerClient <init>
         [java] INFO: ApplicationManagerClient:init()
         [java] ###### -- IN the MAIN -----####
         [java]
         [java] ###### -- Length of args -----####4
         [java] ###### -- IN THE  DEPLOY MODE -----####
         [java]
         [java] Deploying New LCAs...
         [java] Nov 11, 2009 6:09:21 PM com.adobe.idp.applicationmanager.client.Appl
    icationManagerClient callApplicationManager
         [java] INFO: ApplicationManagerClient:callApplicationManager:importApplicat
    ionArchive
         [java] Nov 11, 2009 6:09:23 PM com.adobe.idp.applicationmanager.client.Appl
    icationManagerClient callApplicationManager
         [java] SEVERE: ApplicationManagerClient:callApplicationManager:Exception:ja
    va.lang.IllegalStateException
         [java] java.lang.OutOfMemoryError: Java heap space
         [java]     at com.adobe.idp.applicationmanager.client.ApplicationManagerCli
    ent.callApplicationManager(ApplicationManagerClient.java:108)
         [java]     at com.adobe.idp.applicationmanager.client.ApplicationManager.im
    portApplicationArchive(ApplicationManager.java:147)
         [java] ## --- END OF DEPLOYMENT TASK -- ##
         [java]     at test.com.sample.LCAUtils.CreateAndDeployLCA.OriginaldeployLCA(Cre
    ateAndDeployLCA.java:264)
         [java]
         [java]     at test.com.sample.LCAUtils.CreateAndDeployLCA.multipleDeployLCA(Cre
    ateAndDeployLCA.java:337)
         [java]     at test.com.sample.LCAUtils.CreateAndDeployLCA.main(CreateAndDeployL
    CA.java:484)
         [java] Caused by: java.lang.OutOfMemoryError: Java heap space
    here java  java code works fine for small sized LCAs but mLCA which is around 8-9 Mb is creating problems
    PLease suggest a solution.
    REgards,
    Prabhat

    You get a     [java] java.lang.OutOfMemoryError: Java heap space*
    Try to increase your JVM max memory size.
    Jasmin

  • Java heap space problem in SUN identity management

    Hi All,
    i am new to sun idm, i have installed netbeans 6.0.1 with tomcat 6.0.14 and then i have installed sun idm inside the web container(webapps/idm). When i stared my webserver manually using startup.batch file then I can easily go to inside administrator interface and i can create users in idm. but when i try to create a project in netbeans and then I try to RUN the project through netbeans .. then Admin interface will automatically opened but I try to create a user i am getting the following error.
    com.waveset.util.WavesetException: Can't call method getObjectNames on class com.waveset.ui.FormUtil
    ==> java.lang.OutOfMemoryError: Java heap space
    Please help me in this ...
    my server log as follows
    Using CATALINA_BASE: C:\Documents and Settings\Nirmalkumar.Dhanaraj.R5-CORE\.netbeans\6.0\apache-tomcat-6.0.14_base
    Using CATALINA_HOME: C:\Apache Software Foundation\Apache Tomcat 6.0.14
    Using CATALINA_TMPDIR: C:\Documents and Settings\Nirmalkumar.Dhanaraj.R5-CORE\.netbeans\6.0\apache-tomcat-6.0.14_base\temp
    Using JRE_HOME: C:\Program Files\Java\jdk1.5.0_18
    Aug 19, 2009 2:51:53 PM org.apache.catalina.core.AprLifecycleListener init
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.5.0_18\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\Java\jdk1.5.0_18\bin;C:\Program Files\Java\jre1.5.0_18\bin;
    Aug 19, 2009 2:51:53 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Aug 19, 2009 2:51:53 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 371 ms
    Aug 19, 2009 2:51:53 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Aug 19, 2009 2:51:53 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
    Aug 19, 2009 2:51:53 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
    INFO: validateJarFile(D:\sunIDM\IDM8.0\Idm\image\idm\WEB-INF\lib\j2ee.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    Constructing Startup Servlet...
    Initializing Startup Servlet...
    Defining system properties...
    StartupServlet: programmatically derived waveset.home=file:D:\sunIDM\IDM8.0\Idm\image\idm\
    StartupServlet: Defining properties from web.xml
    Starting: Identity Server...
    Starting internal database server ...
    DB Server @ jdbc:hsqldb:hsql://127.0.0.1:54210/idm
    ...Finished starting Startup Servlet
    Aug 19, 2009 2:52:07 PM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Aug 19, 2009 2:52:07 PM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    Aug 19, 2009 2:52:07 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/16 config=null
    Aug 19, 2009 2:52:07 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 13773 ms
    Shutting down Startup Servlet...
    Stopping: Identity Server...
    Stopping internal database server ...
    ...Finished shutting down Startup Servlet in 1499 ms
    Aug 19, 2009 2:52:09 PM org.apache.catalina.startup.HostConfig checkResources
    INFO: Undeploying context [Idm]
    Aug 19, 2009 2:52:09 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
    INFO: validateJarFile(D:\sunIDM\IDM8.0\Idm\image\idm\WEB-INF\lib\j2ee.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    Constructing Startup Servlet...
    Initializing Startup Servlet...
    Defining system properties...
    StartupServlet: programmatically derived waveset.home=file:D:\sunIDM\IDM8.0\Idm\image\idm\
    StartupServlet: Defining properties from web.xml
    Starting: Identity Server...
    Exception in thread "HSQLDB Timer @8ddc4c" java.lang.NullPointerException
    at org.hsqldb.lib.HsqlTimer.nextTask(Unknown Source)
    at org.hsqldb.lib.HsqlTimer$TaskRunner.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:595)
    Starting internal database server ...
    DB Server @ jdbc:hsqldb:hsql://127.0.0.1:54210/idm
    ...Finished starting Startup Servlet
    Aug 19, 2009 2:52:21 PM org.apache.catalina.core.StandardContext start
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[Idm] has already been started
    XPRESS <invoke> exception:
    com.waveset.util.WavesetException: Can't call method getObjectNames on class com.waveset.ui.FormUtil
    ==> java.lang.OutOfMemoryError: Java heap space

    Hi, there might be some information here that is useful: http://blogs.adobe.com/livecycle/2008/11/livecycle_es_update_1_turnkey.html

  • PDFBox ... Java heap space problem !!

    Hello,
    I'm using PDFBox trying to read (2) pdf files in it, but both are big in size(About 17 MB) each.
    Here is an example for what i want to do :
    public void loadPdfs() {
       String pdf1FilePath = "c:\\java long pdf1.pdf";
       String pdf2FilePath = "c:\\java long pdf2.pdf";
       try {
          PDDocument pdf1File = PDDocument.load( pdf1FilePath );
          //....Do some stuff here.
          pdf1File.close();
          Runtime.getRuntime().gc();
          PDDocument pdf2File = PDDocument.load( pdf2FilePath ); //This line causes the Exception.
       } catch (IOException e) {
          e.printStackTrace();
    } I get this Exception :
    org.pdfbox.exceptions.WrappedIOException: Java heap space
    java.lang.OutOfMemoryError: Java heap space And if i tried to load only (1) pdf it works fine. So why does this happen ?
    I do close the first pdf, and run the Garbage Collector, so when opening the second pdf, it's as if opening (1) file now, or am i mistaken ?

    Sure, you close the PDF (whatever that does). But you're still holding a reference to it, so it can't be garbage collected. This is one of the rare occasions where setting a variable to null is a useful thing to do.try {
      PDDocument pdf1File = PDDocument.load( pdf1FilePath );
      //....Do some stuff here.
      pdf1File.close();
      pdf1File = null;
      PDDocument pdf2File = PDDocument.load( pdf2FilePath ); //This line causes the Exception.
    } catch (IOException e) {
      e.printStackTrace();
    }  Don't bother to call the gc() method, if garbage collection needs to be done then it will be done.

  • 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?

  • Too large java heap error while starting the domain.Help me please..

    I am using weblogic 10.2,after creating the domain, while starting the domain,I am getting this error.Can anyone help me.Please treat this as urgent request..
    <Oct 10, 2009 4:09:24 PM> <Info> <NodeManager> <Server output log file is "/nfs/appl/XXXXX/weblogic/XXXXX_admin/servers/XXXXX_admin_server/logs/XXXXX_admin_server.out">
    [ERROR] Too large java heap setting.
    Try to reduce the Java heap size using -Xmx:<size> (e.g. "-Xmx128m").
    You can also try to free low memory by disabling
    compressed references, -XXcompressedRefs=false.
    Could not create the Java virtual machine.
    <Oct 10, 2009 4:09:25 PM> <Debug> <NodeManager> <Waiting for the process to die: 29643>
    <Oct 10, 2009 4:09:25 PM> <Info> <NodeManager> <Server failed during startup so will not be restarted>
    <Oct 10, 2009 4:09:25 PM> <Debug> <NodeManager> <runMonitor returned, setting finished=true and notifying waiters>

    Thanks Kevin.
    Let me try that.
    Already more than 8 domains were successfully created and running fine.Now the newly created domain have this problem.I need 1GB for my domain.Is there any way to do this?

  • Java Heap Error when using Stateless Session Timer Bean deployed in Oracle

    Hi,
    Am getting following Java Heap Error when using Stateless Session Timer Bean deployed in Oracle 10g AS R3 (Oracle Containers for J2EE 10g (10.1.3.0.0) (build 060119.1546.05277) ):
    06/08/02 14:58:43 javax.ejb.EJBException: java.lang.OutOfMemoryError: Java heap space
    06/08/02 14:58:43 at com.evermind.server.ejb.EJBUtils.getLocalUserException(EJBUtils.java:304)
    06/08/02 14:58:43 at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:67)
    06/08/02 14:58:43 at com.evermind.server.ejb.interceptor.system.TxNotSupportedInterceptor.invoke(TxNotSupportedInterceptor.java:45)
    06/08/02 14:58:43 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
    06/08/02 14:58:43 at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:86)
    06/08/02 14:58:43 at com.evermind.server.ejb.StatelessSessionEJBHome.invokeTimer(StatelessSessionEJBHome.java:71)
    06/08/02 14:58:43 at com.evermind.server.ejb.EJBContainer.invokeTimer(EJBContainer.java:1624)
    06/08/02 14:58:43 at oracle.ias.container.scheduler.TimerTask.runBeanTimer(TimerTask.java:92)
    06/08/02 14:58:43 at oracle.ias.container.scheduler.TimerTask.run(TimerTask.java:184)
    06/08/02 14:58:43 at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:819)
    06/08/02 14:58:43 at java.lang.Thread.run(Thread.java:595)
    06/08/02 14:58:43 Caused by: java.lang.OutOfMemoryError: Java heap space
    I had tried using -Xms / -Xmx options (upto 1 GB).
    The trace of exception gets delayed (from being displayed on the console) as the memory size is increased; but after sometime it starts getting displayed on the console.
    Even though this exception is displayed on the console, the Timer Bean continues to execute upto sometime before it finally crashes!
    If anyone has encountered such problem; would appreciate if you could share the solution.
    Regards, Vidyadhar

    Hi guys, I have the same problem. I have an application EAR file with two modules (EJB and WAR starting in this order). The application can schedule a process via EJB timer. In this case restarting the server I receive the error above. If I change the modules start order --> WAR - EJB the server start correctly, but the application scheduler fails (the persistency is not working) with this error:
    07/10/09 10:30:54 FINISSIMO: TimerTask.runBeanTimer java.lang.NullPointerException; nested exception is: java.lang.NullPointerExceptionjavax.ejb.TransactionRolledbackLocalException: java.lang.NullPointerException; nested exception is: java.lang.NullPointerException
    java.lang.NullPointerException
         at java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:107)
         at java.util.ResourceBundle.getObject(ResourceBundle.java:319)
         at java.util.ResourceBundle.getString(ResourceBundle.java:285)
         at java.util.logging.Formatter.formatMessage(Formatter.java:108)
         at oracle.j2ee.util.TraceLogFormatter.format(TraceLogger.java:124)
         at oracle.j2ee.util.TraceLogger$TraceLoggerHandler.publish(TraceLogger.java:105)
         at java.util.logging.Logger.log(Logger.java:428)
         at java.util.logging.Logger.doLog(Logger.java:450)
         at java.util.logging.Logger.log(Logger.java:539)
         at oracle.ias.container.timer.TimerEntry.readObjFromBytes(TimerEntry.java:308)
         at oracle.ias.container.timer.TimerEntry.getInfo(TimerEntry.java:107)
         at oracle.ias.container.timer.Timer.getInfo(Timer.java:367)
         at oracle.ias.container.timer.EJBTimerImpl.getInfo(EJBTimerImpl.java:89)
         at com.finantix.foundation.integration.ejbtimer.EJBTimerServiceExecutorBean.ejbTimeout(EJBTimerServiceExecutorBean.java:42)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBTimeoutJoinPoint.invoke(EJBTimeoutJoinPoint.java:20)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxBeanManagedInterceptor.invoke(TxBeanManagedInterceptor.java:53)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at com.evermind.server.ejb.StatelessSessionEJBHome.invokeTimer(StatelessSessionEJBHome.java:38)
         at com.evermind.server.ejb.EJBContainer.invokeTimer(EJBContainer.java:1714)
         at oracle.ias.container.scheduler.TimerTask.runBeanTimer(TimerTask.java:106)
         at oracle.ias.container.scheduler.TimerTask.run(TimerTask.java:220)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    javax.ejb.TransactionRolledbackLocalException: java.lang.NullPointerException; nested exception is: java.lang.NullPointerException
         at com.evermind.server.ejb.EJBUtils.getLocalUserException(EJBUtils.java:309)
         at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:73)
         at com.evermind.server.ejb.interceptor.system.TxBeanManagedInterceptor.invoke(TxBeanManagedInterceptor.java:55)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at com.evermind.server.ejb.StatelessSessionEJBHome.invokeTimer(StatelessSessionEJBHome.java:38)
         at com.evermind.server.ejb.EJBContainer.invokeTimer(EJBContainer.java:1714)
         at oracle.ias.container.scheduler.TimerTask.runBeanTimer(TimerTask.java:106)
         at oracle.ias.container.scheduler.TimerTask.run(TimerTask.java:220)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.NullPointerException
         at java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:107)
         at java.util.ResourceBundle.getObject(ResourceBundle.java:319)
         at java.util.ResourceBundle.getString(ResourceBundle.java:285)
         at java.util.logging.Formatter.formatMessage(Formatter.java:108)
         at oracle.j2ee.util.TraceLogFormatter.format(TraceLogger.java:124)
         at oracle.j2ee.util.TraceLogger$TraceLoggerHandler.publish(TraceLogger.java:105)
         at java.util.logging.Logger.log(Logger.java:428)
         at java.util.logging.Logger.doLog(Logger.java:450)
         at java.util.logging.Logger.log(Logger.java:539)
         at oracle.ias.container.timer.TimerEntry.readObjFromBytes(TimerEntry.java:308)
         at oracle.ias.container.timer.TimerEntry.getInfo(TimerEntry.java:107)
         at oracle.ias.container.timer.Timer.getInfo(Timer.java:367)
         at oracle.ias.container.timer.EJBTimerImpl.getInfo(EJBTimerImpl.java:89)
         at com.finantix.foundation.integration.ejbtimer.EJBTimerServiceExecutorBean.ejbTimeout(EJBTimerServiceExecutorBean.java:42)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBTimeoutJoinPoint.invoke(EJBTimeoutJoinPoint.java:20)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxBeanManagedInterceptor.invoke(TxBeanManagedInterceptor.java:53)
         ... 9 more
    Any idea?
    Thx Auro

  • Large Report Errors out with Java Heap Space in EBS 12.0.6

    When running custom or Standard BI report that have a huge data , we get a following error in EBS
    [UNEXPECTED] [156627:RT4605044] java.lang.OutOfMemoryError: Java heap space
    at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:45)
    at java.lang.StringBuffer.<init>(StringBuffer.java:91)
    at oracle.apps.xdo.template.fo.FOHandler.init(FOHandler.java:161)
    at oracle.apps.xdo.template.fo.FOProcessingEngine.process(FOProcessingEngine.java:335)
    at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:1045)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5926)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3458)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3547)
    at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:259)
    at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:172)
    We have tried the follwing workaroud mentioned in the docoment 737311.1
    A)
    1)update FND_CP_SERVICES set DEVELOPER_PARAMETERS =
    'J:oracle.apps.fnd.cp.gsf.GSMServiceController:-mx5120m'
    where SERVICE_ID = (select MANAGER_TYPE from FND_CONCURRENT_QUEUES
    where CONCURRENT_QUEUE_NAME = 'FNDCPOPP');
    2)As XML Publisher Administrator navigate to Administration->Configuration.
    Under Temporary Directory pick a temporary file location on your concurrent processing node. This should be at least 5GB or 20x larger than largest XML data file you generate
    Under FO Processing, set:
    Use XML Publisher's XSLT processor set to True
    Enable scalable feature of XSLT processor set to False (see #4 below),
    Enable XSLT runtime optimization set to True
    3)We also have tried to to apply the workaround mentioned in the document 747750.1
    In to Concurrent -> Program -> Define, in the 'Executable' group, there is a field named 'Options'.
    Enter the value '-ms1024m -mx1024m' as the value for this field.
    None of these seem to have worked.
    Also refered to the the previous forum entries on these. But did not find anything specific to EBS. Most of them were related to Standalone installations.
    CAn anyone help me.
    Dhaval K

    hi gurus
    The problem has sovled.I supplyed the wrong file for the rawfile.conf,everything was fine after I provided the corrent one.
    Thanks for your time.

  • Java heap space error occured during message mapping of FILE to IDOC

    hello Friends,
                          I am trying to do the message mapping for File to Idoc scenario.
    Idoc which I am using is HRMD_A.HRMD_A06 and infotype which I want to update is 14. I am trying to map the message type which I hav created for infotype 14 with the IDOC
    Its very simple scenerio but  every time I try to save the mapping before activating it I get an error:
    Java heap space
    Internal problem occurred (INTERNAL_PROBLEM)
    Java heap space.
                I am not able to figure out what possibly is the problem wheather its from my end or the BASIS end.
    Kindly help.
    Regards,
    Lokesh

    As the server probably survives (you restart your Integration Builder and can probably connect immediately), the problem will be on your side (client). Did you add one or more large xml-test-instances to the mapping ? If yes, delete them, because they lower the performance and can make problems. If not, then this is a strange problem. Even if the Idoc structure is complex, the mapping object itself cannot be that large.Is this problem only with this one mapping ?
    CSY
    Edited by: Christian Sy on Mar 9, 2010 6:26 AM

  • 10Mb .swf compilation - OutOfMemoryError: Java heap space...

    When I try to compile my 10Mb .swf with the "-Xmx1024m" setting in pfi.bat I getting:
    Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
          at java.util.Arrays.copyOf(Unknown Source)
          at java.io.ByteArrayOutputStream.write(Unknown Source)
          at java.io.OutputStream.write(Unknown Source)
          at adobe.abc.GlobalOptimizer.emitAbc(GlobalOptimizer.java:2670)
          at adobe.abc.GlobalOptimizer.emit(GlobalOptimizer.java:2594)
          at adobe.abc.LLVMEmitter.optimizeABCs(LLVMEmitter.java:320)
          at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:172)
          at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcode(AOTCompiler.java:329)
          at com.adobe.air.ipa.AOTCompiler.GenerateMacBinary(AOTCompiler.java:600)
          at com.adobe.air.ipa.IPAOutputStream.compileRootSwf(IPAOutputStream.java:196)
          at com.adobe.air.ipa.IPAOutputStream.finalizeSig(IPAOutputStream.java:366)
          at com.adobe.air.ADTPackager.createPackage(ADTPackager.java:65)
          at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:165)
          at com.adobe.air.ADTEntrypoint.parseArgsAndGo(ADTEntrypoint.java:132)
          at com.adobe.air.ipa.PFI.parseArgsAndGo(PFI.java:152)
          at com.adobe.air.ADTEntrypoint.run(ADTEntrypoint.java:68)
          at com.adobe.air.ipa.PFI.main(PFI.java:112)
    When I increase try jave heap from "-Xmx1024" to "-Xmx1200" or more memory for jave heap I stable getting:
    # A fatal error has been detected by the Java Runtime Environment:
    #  Internal Error (0xe06d7363), pid=3796, tid=3048
    # JRE version: 6.0_16-b01
    # Java VM: Java HotSpot(TM) Client VM (14.2-b01 mixed mode windows-x86 )
    # Problematic frame:
    # C  [kernel32.dll+0x12afb]
    # An error report file with more information is saved as:
    # C:\svn\xxx\components\xxx\output\hs_err_pid3796.log
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    Compilation process looks like this:
    Have anybody idea how can I compile my .swf? Thanks.

    Hi Joseph,
    I'm having the same problem with CWLMS 4.0.1. But I didn't find this file heap.properties in the
    /opt/CSCOpx/MDc/tomcat/webapps/rme/WEB-INF/classes/com/cisco/nm/rmeng/cli/framework/
    Do you know where I customize this parameter in that version?
    Thanks,
    Patricia Oliveira

  • OutOfMemoryError: Java heap space

    Hi There
    i am facing som problem in my one of concurrent manager (Output Post Processor) and its showing value of Actual 2 and Target 3 and getting some exception in one of process's log which as follwos.
    Exception in thread "PacketReceiver for [172.20.2.11:15028]" java.lang.OutOfMemoryError: Java heap space
         at java.net.SocketInputStream.read(SocketInputStream.java:181)
         at oracle.ias.cache.group.HttpHandler.read(Unknown Source)
         at oracle.ias.cache.group.StreamHandler.read(Unknown Source)
         at oracle.ias.cache.group.EndPoint.read(Unknown Source)
         at oracle.ias.cache.group.PacketReceiver.run(Unknown Source)
    Exception in thread "OPPAQMON:206703" java.lang.OutOfMemoryError: Java heap space
         at oracle.jdbc.driver.T4CMAREngine.unmarshalDALC(T4CMAREngine.java:2125)
         at oracle.jdbc.driver.T4C8TTIrxh.unmarshalV10(T4C8TTIrxh.java:119)
         at oracle.jdbc.driver.T4CTTIiov.unmarshalV10(T4CTTIiov.java:188)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:614)
         at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:191)
         at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:950)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1225)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3387)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3488)
         at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:3857)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
         at oracle.apps.fnd.cp.opp.OPPAQMonitor.waitForMessage(OPPAQMonitor.java:429)
         at oracle.apps.fnd.cp.opp.OPPAQMonitor.run(OPPAQMonitor.java:114)
         at java.lang.Thread.run(Thread.java:619)
    please help me out how to resolved this issue.
    Application: Oracle Ebs-R12(12.1.2)
    DB: 11.1.0.7
    OS: linux 5*86x64
    Waiting for valuable response.
    Regards,
    Mohsin

    Hi Hussein
    I have a question on this OPP java heap space .
    Let say I have 10 Process allocated for OPP and heap space allocated to OPP is 1024 MB.
    Q 1 . Let say 5 requests are running by 5 OPP processes.. Then how this heap memory allocated ?
    is it something like heap space / number of running requests by OPP (1024/5 in this case )
    Q 2. Let say i have submitted 2 requests . One request needs 800 MB of heap space (based on the past runs )
    And Second one requires 500 MB of heap space .
    In this we will get java out of memory error ? Am I correct ?
    Q 3 . Will all requests after submitted after test case 2 ( Q 2) encounter out of memory errors Since the heap space was exhausted until OPP bounced or full /GC Completed/
    Please Correct me if I am wrong
    --Thanks In advance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Trouble with  "java.lang.OutOfMemoryError: Java heap space"

    Hello,
    I use a Java-based modeling tool that very few out there are probably familiar with. This tool allows me to run models (program) from within the development environment, to create Applets or create jar files that can be executed in a stand-alone fashion.
    I am using a database on my local harddrive to read in some data using JDBC, so am not using the Applet option with certificates. The development environment is expensive, so can't be distributed. That leaves the stand-alone option.
    The model (program) I've written runs perfectly fine in the development environment and, previously, has worked fine as a stand-alone program. However, the stand-alone option isn't working anymore, because I keep getting this error.
    I am not much of a Java programmer; I'm learning as I go along. If anyone can help me solve this, I'll be most appreciative
    From my cmd prompt:
    C:\Documents and Settings\072\Desktop\TA\for\for Applet Files>cd "C:\D
    ocuments and Settings\072\Desktop\TA\for\for Applet Files"
    C:\Documents and Settings\072\Desktop\TA\for\for Applet Files>java -cl
    asspath enterprise_library.jar;business_graphics_library.jar;for.jar;xjanylog
    ic5engine.jar for/Main$Simulation
    Started...
    AnyLogic simulation engine has started [$Id: Engine.java,v 1.134 2004/12/03 08:4
    9:39 basil Exp $]
    java.lang.OutOfMemoryError: Java heap space
    setting error: Exception during root.courseQueue-1556 startup: java.lang.OutOfMe
    moryError: Java heap space
    thread = Thread[Model Creation Thread,5,main]
    engine = com.xj.anylogic.Engine@1099257
    Exception in thread "Image Fetcher 0" java.lang.OutOfMemoryError: Java heap spac
    e
    java.lang.OutOfMemoryError: Java heap space
    setting error: Exception during startup: java.lang.OutOfMemoryError: Java heap s
    pace
    thread = Thread[Model Creation Thread,5,main]
    engine = com.xj.anylogic.Engine@1099257
    java.lang.OutOfMemoryError: Java heap space
    setting error: Exception in statechart 'root.courseExit-0.inputProcessor' entry
    actions: java.lang.OutOfMemoryError: Java heap space
    thread = Thread[AnyLogic main thread,5,main]
    engine = com.xj.anylogic.Engine@1099257
    java.lang.OutOfMemoryError: Java heap space
    setting error: Exception in statechart 'root.courseDelay-0.inputProcessor' entry
    actions: java.lang.OutOfMemoryError: Java heap space
    thread = Thread[AnyLogic main thread,5,main]
    engine = com.xj.anylogic.Engine@1099257
    java.lang.OutOfMemoryError: Java heap space
    setting error: Exception in statechart 'root.courseDelay-1.inputProcessor' entry
    actions: java.lang.OutOfMemoryError: Java heap space
    thread = Thread[AnyLogic main thread,5,main]Exception in thread "AWT-EventQueu
    e-0"
    java.lang.OutOfMemoryError: Java heap space
    engine = com.xj.anylogic.Engine@1099257

    Hi I am ancountering the same problem with the 'heap space'.
    Is there any way I can find out what it is set to for my system? I dont believe its 32Mb and dont want to increase it randomly to too large a size if theres no need for it.
    Thanks,
    Bobby

Maybe you are looking for

  • MP3 and CD eject problems

    I've started using logic express for a sound design class and have come up on some sticky problems. #1 Mp3's won't import (I've posted this previously) The audio window sees the mp3's, plays them, but won't convert and put them in the project folder.

  • How to display integer in the JtextField?

    Dear All I need your guidance and your advise on the following. I am creating an applet and I don't know how to display the integer which I have. Basically, i need to disply the following into a JtextField. int d1 = (int) (Math.random() * 6) + 1; int

  • MacBook Air keeps reopening the same windows

    My MacBook Air (Mid 2012) keeps reopening last night's windows and apps. I close the applications and launch new applications and even add new apps to the dock but it ignores and removes these changes and launches the last night's windows when I rest

  • Anyone have trouble with ULN 4.5 ISOs?

    I've never had a problem with downloading, burning, and using ISOs, until now... I don't claim to be an expert, but I've been around the farm a while. I downloaded the 4.5 installation (zipped) ISOs, 4 of them. I checked the md5sums on the zip files

  • Error in applying gif icon on a button in 10g forms

    Dear users...I wanna apply a gif image on a push button named "Pb_Ext" in my form but I'm being failed in this simple task :( For this purpose I've taken the following steps. 1: I made Iconic property to "Yes" and in icon filename property I gave the