Two versions of code, one compile failure with java.lang.OutOfMemoryError

I Have two cvs versions of one package. The differences between the two are minor, and I'm only trying to make the root version look like the latest branch. When I compile the branch, which has more code, things are fine. When I comple the root version I get
java.lang.OutOfMemoryErrorSInce I can compile one version, it is clearly not the case that I lack RAM or something like that. What might the problem be? Thanks.
Ken

I'm compiling and I'm doing it with ant. As I said,
it works fine with a slightly updated version of the
Java package I have, but has this error while doing
the same compile on the cvs root version of the
package. I'm just trying to prepare for mergning the
new code but can't compile the basic version of the
package.Then, as already stated, the difference between the two versions is enough to cross the threshold of heap memory available to the VM that's running the compiler. Ant lets you provide VM options to an externally invoked VM. See its docs for how. If you're using fork="false", then just change or add -Xmx in ant.bat or ant.sh.

Similar Messages

  • XML Publisher report failing with java.lang.outofmemoryerror.

    Hi,
    We have developed a custom Oracle report that produces an XML output file that is about 13M in size (about 18K rows from the database). When running report as concurrent request, post processing fails with java.lang.outofmemoryerror. The failure occurs when specifying output format as Excel, RTF or HTML. However, the process completes successfully when specifying output format as PDF. We have also noticed that Excel, RTF and HTML will complete successfully if the XML data file is smaller (around 3M).
    Is anyone aware of a restriction on the size of the XML data file when specifying output formats Excel, RTF or HTML? We have tried setting temp directory but that has not helped.
    Thanks.

    Hi
    I found this at metalink [Note:390968.1].. hope it helps =)
    Symptoms: When attempting to run an XML Publisher concurrent program the following error occurs:
    ERROR: Warning!!! Got out of memory exception, retrying with scalable option..
    Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
    Oracle.apps.xdo.oa.cp.JCP4XDODataEngine
    Program exited with status 1
    Solution: To implement the solution, please execute the following steps:
    1. Login select the responsibility: System Administrator.
    2. Navigate to Concurrent > Program > Define.
    3. Query for concurrent program that is receiving the error.
    4. In the 'Options' field please enter -Xmx512M.
    5. Save the change and retest the issue.
    6. If the report still fails with the option set to -Xmx512M change the value to -Xmx1024M, save and try again
    7. Migrate the solution as appropriate to other environments.

  • One app service getting "java.lang.OutOfMemoryError: Java heap space"

    We are running a commercial app on WebLogic 9.2. Two physical servers with 5 application processes running on each in a single cluster. on the server in question, we have 5.5 gigs of free ram at the moment and still getting the message below.
    We have 10 app servers and one is getting this message. the full text of it is:
    ####<Apr 13, 2011 10:58:12 AM CDT> <Warning> <DeploymentService> <lxwbwapa> <workbpr2_node_1a> <[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1302710292663> <BEA-290064> <Deployment service servlet encountered an Exception while handling the deployment service message for request id "-1" from server "Admin_pr2_a". Exception is: "java.lang.OutOfMemoryError: Java heap space
    ".>
    I dug back through the logs and found it started a couple of weeks ago. I have been able to log into this app server without issue.
    Something else I have noticed is that the total heap size for all the app services have shrunk from the initial value of 1.5G - they have all dropped down into the 500 meg range. Is this normal? Why has this one not increased the size of the heap if it is running out of memory?
    I could restart the service for this app server but I would not know the cause and since it is a production server where I am not recieving complaints, I am hesitant to go through the res tape to do a re-start.
    Any information or past experience with this type issue is greatly appreciated.
    Thanks,
    W

    Hello,
    You might want to post this in the weblogic forum: WebLogic Server - General
    as they might be able to explain how WebLogic uses or releases resources.
    Regards,
    Chris

  • Problem with java.lang.OutOfMemoryError

    hi
    i am developping a web application
    i am using jfreechart in my jsf application to generate statistic diagrams
    to update my diagrams i am calling the methode ChartUtilities.saveChartAsPNG(file1, chart, 400, 300, null) every 10 seconds
    my application become more and more slow and the cpnsommatio of memory is more and more important until getting this exception:
    javax.faces.el.EvaluationException: java.lang.OutOfMemoryError: Java heap space
         at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         at javax.faces.component.UICommand.broadcast(UICommand.java:387)
         at org.ajax4jsf.component.AjaxActionComponent.broadcast(AjaxActionComponent.java:55)
         at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321)
         at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:296)
         at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253)
         at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:409)
         at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at TimeoutFilter.doFilter(TimeoutFilter.java:64)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
         at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
         at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
         at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.OutOfMemoryError: Java heap space
         at java.awt.image.DataBufferInt.<init>(Unknown Source)
         at java.awt.image.Raster.createPackedRaster(Unknown Source)
         at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
         at java.awt.image.BufferedImage.<init>(Unknown Source)
         at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1407)
         at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1389)
         at org.jfree.chart.ChartUtilities.writeChartAsPNG(ChartUtilities.java:183)
         at org.jfree.chart.ChartUtilities.saveChartAsPNG(ChartUtilities.java:320)
         at SWIMLogStatistiques.generateChartMethod(SWIMLogStatistiques.java:98)
         at SWIMmoduleStatistiques.generateChartMethod(SWIMmoduleStatistiques.java:39)
         at ListModules.mesServicesAttributs(ListModules.java:199)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.el.parser.AstValue.invoke(AstValue.java:172)
         at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
         at org.apache.jasper.el.JspMethodExpression.invoke(JspMethodExpression.java:68)
         at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         at javax.faces.component.UICommand.broadcast(UICommand.java:387)
         at org.ajax4jsf.component.AjaxActionComponent.broadcast(AjaxActionComponent.java:55)
         at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321)
         at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:296)
         at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253)
         at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:409)
         at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    after doing some searches, i found that the solution is to change the memory allocated for the JVM but in my case, the memory consommed by my application is increasing along with time.
    i think that the problem is with:*ChartUtilities.saveChartAsPNG(file1, chart, 400, 300, null);*:does this instruction consume a lot of memory and how can i resolve thos problem?

    riadhhwajdii wrote:
    i am using jfreechart in my jsf application to generate statistic diagrams
    to update my diagrams i am calling the methode ChartUtilities.saveChartAsPNG(file1, chart, 400, 300, null) every 10 seconds
    my application become more and more slow and the cpnsommatio of memory is more and more important until getting this exception:This bit (slowing down over several cycles of the code)..and this bit:
    after doing some searches, i found that the solution is to change the memory allocated for the JVM but in my case, the memory consommed by my application is increasing along with time.(increasing memory simply delays the exception), are usually a pointer that you have a memory leak somewhere.
    i think that the problem is with:*ChartUtilities.saveChartAsPNG(file1, chart, 400, 300, null);*:does this instruction consume a lot of memory and how can i resolve thos problem?Take some heap dumps (especially when the out of memory occurs) and stick them in a memory analyser. Just because the exception is being thrown during saveChartAsPNG() does not mean that's the culprit. All that means is it was the final straw.

  • J2EE engine restart with java.lang.OutOfMemoryError  Java heap space

    Hi
    I hope someone can help me, I have an error on my J2EE engine.
    My portal restarts only when I click on User - Administration - Identity Management.
    Here is the log error.
    Exception id: [000000000000005B0000001C0000098800045ACD637E87AB]#
    #1.5^H#0000000000000059000000690000098800045ACD6EF06673#1225738282886#com.sap.engine.frame.Environment##com.sap.engine.frame.
    Environment#J2EE_GUEST#0##host_SID_4130050#J2EE_ADMIN#40cf7230a9d811dda9f9000000000000#SAPEngine_Application_Thread[impl:3
    ]_13##0#0#Error#1#/System/Server/Critical#Plain###FATAL: Caught OutOfMemoryError! Node will exit with exit code 666#
    #1.5^H#00000000000000590000006A0000098800045ACD6EF06833#1225738282886#com.sap.engine.frame.Environment##com.sap.engine.frame.
    Environment#J2EE_GUEST#0##host_SID_4130050#J2EE_ADMIN#40cf7230a9d811dda9f9000000000000#SAPEngine_Application_Thread[impl:3
    ]_13##0#0#Fatal#1#/System#Java###FATAL: Caught OutOfMemoryError! Node will exit with exit code 666
    [EXCEPTION]
    #1#java.lang.OutOfMemoryError: Java heap space
            at java.lang.ClassLoader.defineClass0(Native Method)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
            at com.sap.engine.services.deploy.server.ApplicationLoader.defineClassWithInterception(ApplicationLoader.java:168)
            at com.sap.engine.services.deploy.server.ApplicationLoader.loadLocalClass(ApplicationLoader.java:140)
            at com.sap.engine.frame.core.load.ResourceLoader.loadClass(ResourceLoader.java:127)
            at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:365)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
            at com.sap.security.core.wd.assignusermapping.wdp.InternalAssignUserMappingComp.<init>(InternalAssignUserMappingComp.
    java:173)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
            at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:74)
            at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.<init>(DelegatingComponent.java:51)
            at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:382)
            at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:940)
            at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:177)
            at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponentInternal(ComponentUsage.java:149)
            at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponent(ComponentUsage.java:116)
            at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createInstanceIfDemanded(ComponentUsage.java:728)
            at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.getImplementingInterfaceViewInfo(ComponentUsage.java:403)
            at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.getViewManagerFor(ClientComponent.java:305)
            at com.sap.tc.webdynpro.progmodel.view.ViewManager.createUninitializedView(ViewManager.java:628)
            at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:694)
            at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:555)
            at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:724)
            at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)
            at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)
            at com.sap.tc.webdynpro.progmodel.view.InterfaceView.initController(InterfaceView.java:43)
            at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
            at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)
    Thanks for your help

    pretty obvious to me "java.lang.OutOfMemoryError: Java heap space"
    Read,
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/jsts/(Kernel)OOM
    or
    java.lang.OutOfMemoryError: Java heap space
    those links should give you a fairly good idea on how to solve the issue.
    Regards
    Juan

  • XML Publisher report ends in Warning with java.lang.OutOfMemoryError

    Hi,
    We are modifying the standard report Account Analysis Report (in Subledger Accounting) to create a custom report.
    When run wide open, it is ending in Warning with the error java.lang.OutOfMemoryError in OPP Log.
    We are on EBS 12.1.3. DB 11.2.0.3 and XML Publisher 5.6.3
    We have set the below parameters in the data definition:
    Use XML Publishers XSLT processor: True
    Enable Scalable feature of XSLT processor: True
    Enable XSLT Runtime optimization: True
    Also we have added these to the Data template:
      <property name="db_fetch_size" value="20" />
      <property name="scalable_mode" value="on" />
    On the concurrent program, we have this option set:
    -ms1024m -mx2048m
    Still, the program is ending in Warning and not producing output. Any pointers here?
    We can also see that the Temporary Directory is not able to be set on the data definition. Why is this?
    After setting the Temporary Directory from Administration page, we were able to set the temporary directory for this data definition, but that did not solve the iseue.

    Glad you have sorted this - note that the fnd_concurrent_requests table has the fields pp_Start_date and pp_end_date which will show how long post processing is taking.
    Good to a good idea to monitor this in relation to the setting you have made in the profile option Concurrent:OPP Timeout profile option though 3 hours should cover most things!!!!

  • 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

  • Dbca errors out with java.lang.OutOfMemoryError: Java heap space

    hi gurus
    I am trying to use DBCA to create a 10.2.0.4 database on a HP platform.DBCA hangs at the step 6 and following message can be seen in the
    trace.log:
    java.lang.OutOfMemoryError: Java heap space
    I googled and modified the DBCA scripts content from
    # Run DBCA
    $JRE_DIR/bin/java -Dsun.java2d.font.DisableAlgorithmicStyles=true -DORACLE_HOME=$OH -DDISPLAY=$DISPLAY -DJDBC_PROTOCOL=thin -mx128m
    -classpath $CLASSPATH oracle.sysman.assistants.dbca.Dbca $ARGUMENTS
    to
    # Run DBCA
    $JRE_DIR/bin/java -Dsun.java2d.font.DisableAlgorithmicStyles=true -DORACLE_HOME=$OH -DDISPLAY=$DISPLAY -DJDBC_PROTOCOL=thin -mx256m
    -classpath $CLASSPATH oracle.sysman.assistants.dbca.Dbca $ARGUMENTS
    and rerun the DBCA and the problem still there.
    How to solve this problem?
    Thanks !
    Edited by: KevinMao on Mar 31, 2010 2:39 AM
    Edited by: KevinMao on Mar 31, 2010 2:42 AM

    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.

  • Weblogic crashes with  java.lang.OutOfMemoryError: getNewTla.

    Hi,
    We have a clustered Weblogic environment and a custom WebCenter portal application is deployed on it.
    We are using JDev 11.1.1.5.0 and the Weblogic version we are using is 10.3.5.0
    We are frequently getting below error on either cluster. Can anyone help please?
    ExecuteRequest failed
    java.lang.OutOfMemoryError: getNewTla.
    java.lang.OutOfMemoryError: getNewTla
    at java.util.HashMap.newKeyIterator(HashMap.java:1024)
    at java.util.HashMap$KeySet.iterator(HashMap.java:1062)
    at java.util.HashSet.iterator(HashSet.java:153)
    at weblogic.cluster.messaging.internal.GroupImpl.getConfigInformation(GroupImpl.java:271)
    at weblogic.cluster.messaging.internal.GroupManagerImpl.findOrCreateGroupMember(GroupManagerImpl.java:198)
    at weblogic.cluster.messaging.internal.GroupManagerImpl.handleMessage(GroupManagerImpl.java:173)
    at weblogic.cluster.messaging.internal.ConnectionImpl$1.run(ConnectionImpl.java:139)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Regards,
    Kanchan

    Hi Kanchan,
    Few things you could do here is,
    1. Check GC logs to check if Garbage collector selected is able to release un-referenced objects. Logs will give you hint about possible memory leak.
    If you have not set debug GC logs then set it using -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCApplicationStoppedTime -XX:+PrintGC -Xloggc:/logs/server1_gclogs.txt
    2. Would prefer to take heap dump on OOM and use any tool like jhat or MAT to analyse. It will help in deciding if you require any performance tuning at JVM level. sometime it happens that heap space allocated is tool low causing OOM.
    For taking heap dump either set it as JAVA option - "*-XX:+HeapDumpOnOutOfMemoryError*"
    or
    using Sun tool "jmap"
    $ jmap –heap:format=b <pid>
    Thanks,
    Ranjan

  • JSP compilation failed with java.lang.IllegalStateException: zip file close

    Hi,
    I have a web app successfully deployed on Weblogic7.0 and HP UX 11.0, which uses jdk 1.3.1_02
    In this application, when i invoke a jsp (this exception occurs on any jsp not to any specific jsp), i found the following exception trace on wl-domain.log file and server crashes: -
    java.lang.IllegalStateException: zip file closed
         at java.util.zip.ZipFile.getEntry(Unknown Source)
         at weblogic.servlet.internal.WarClassFinder.getSource(WarClassFinder.java, Compiled Code)
         at weblogic.servlet.internal.WarClassFinder.getSource(WarClassFinder.java, Compiled Code)
         at weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java, Compiled Code)
         at weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java, Compiled Code)
         at weblogic.utils.classloaders.MultiClassFinder.getClassSource(MultiClassFinder.java, Compiled Code)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.upToDate(ChangeAwareClassLoader.java, Compiled Code)
         at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java, Compiled Code)
         at weblogic.servlet.internal.ServletStubImpl.checkForReload(ServletStubImpl.java, Compiled Code)
         at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java, Compiled Code)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java, Compiled Code)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java, Compiled Code)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java, Compiled Code)
         at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java, Compiled Code)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java, Compiled Code)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java, Compiled Code)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java, Compiled Code)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
    Can anyone help me in figuring out this problem urgently?
    thanks in advance
    manoj

    Hi Manoj.I am also getting the same problem in the weblogicserver version-6.1 SP2.It is also using the jdk 1.31.
    here is my stack trace.Help i smuch appreciated.!!
    java.lang.IllegalStateException: zip file closed
         at java.util.zip.ZipFile.getEntry(ZipFile.java:141)
         at weblogic.servlet.internal.WarClassFinder.getSource(WarClassFinder.java:197)
         at weblogic.servlet.internal.WarClassFinder.getSource(WarClassFinder.java:106)
         at weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java:53)
         at weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java:53)
         at weblogic.utils.classloaders.MultiClassFinder.getClassSource(MultiClassFinder.java:45)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:265)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:156)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:65)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
         at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
         at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
         at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
         at com.slfc.framework.service.ServiceMessageFactory.createServiceResult(ServiceMessageFactory.java:58)
         at sunlife.nexus.admin.SecPro.establishSupportSession(Unknown Source)
         at sunlife.nexus.admin.Page_secPro_extAppLoader.processPageRequest(Unknown Source)
         at sunlife.wis.servlets.WISServlet.redirect(WISServlet.java:63)
         at sunlife.wis.servlets.WISServlet.doExec(WISServlet.java:107)
         at sunlife.wis.servlets.WISServlet.doGet(WISServlet.java:70)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

  • Help me please with java.lang.outofmemoryerror

    For anyone who considers themselves a java expert....could you please be of assistance? I have been chatting at www.bodyforlife.com for several weeks now and all the sudden I can't get in. I do know that other people are still able to get in as well. When I try to connect applet initializes and then says applet started when I try to enter then nothing happens. My java console says java.lang.outofmemoryerror. I have Windows 2000 and am running a Mcaffee firewall. Does anyone have any idea why I all the sudden can not get into this chat room? I have everything enabled that I know of. Any help would be much appreciated. Thanks.

    you need to make periodic writes to persistent storage. This is a common scalability issue. At some point you will always run out of memory.
    Increasing usable memory will not necessarily fix your problem. Maximum virtual memory is around 2GB on most Windows systems. If your entries take up more than "4 bytes" each, then you will never have enough memory.

  • OLM on content server with ias (10.1.3) java.lang.OutOfMemoryError

    Dears,
    we have set up OLM on content server with ias (10.1.3)
    I'm Facing the following error when uploading 100 M learning material although i have changed the server properties of OC4J java heap size to 1024 - 2048 and maxpermsize to 1024
    JSP Error:
    Request URI:/OA_HTML/OA.jsp
    Exception:
    java.lang.OutOfMemoryError
    Thanks,
    Regards.

    PLease refer Husain comments below
    "Please see these docs.
    OLM Content Import Erroring with java.lang.outofmemoryerror for Large Files [ID 368479.1]
    When Importing And/Or Uploading Large Upk-Type Files Fail to Unzip [ID 735653.1]
    Out Of Memory Errors While Uploading Large Content [ID 1130960.1]
    Utilizing Content Servers with Oracle Learning Management [ID 374677.1]
    Thanks,
    Hussein"
    apart from the above what I would normally is, while zipping the file I would exclude heavy content file and upload the file.
    after uploading file, just go and paste excluded file in respective folder.
    sathish

  • I have two versions of Pr, one is the latest 2014 and when trying to open a Pr2014 session, I get an error message saying the project was saved in a newer version and cannot be opened. Help

    I have two versions of Pr, one is the latest 2014 and when trying to open a Pr2014 session, I get an error message saying the project was saved in a newer version and cannot be opened. Could there be an issue with an older Pr application on the computer? Please help!

    You need to be very careful which project you open in which version.
    For 2014 make sure its on 2014.1 build 81.

  • Can I compiler servlet with java compiler?

    Can I compiler servlet with java compiler?
    Here is an example of it:
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class HelloWorldServlet extends HttpServlet
              protected void doGet(HttpServletRequest request,
              HttpServletResponse response) throws ServletException , IOException
                        response.setContentType("text/html");
                        PrintWriter out = response.getWriter();
                        StringBuffer sb = new StringBuffer();
                        sb.append("<html><body><h1>");
                        sb.append("Hello World");
                        sb.append("</h1></body></html>");
                        out.print(sb.toString());
                        out.close();
         }

    Can I compiler servlet with java compiler?
    yes.
    just include the correct jarfiles in your classpath.

  • Java.lang.OutOfMemoryError on Eclipse with Flex Plugin

    Dear All,
    I am compiling a J2EE+Flex application on eclipse ganymede Version: 3.4 with the following eclipse.ini settings. (I am working on windows7 machine with 3GB Ram)
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    512M
    -framework
    plugins\org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar
    -vmargs
    -Dosgi.requiredJavaVersion=1.5
    -Xms512m
    -Xmx768m
    -XX:PermSize=512m
    -XX:MaxPermSize=768m
    -XX:+HeapDumpOnOutOfMemoryError
    -Djava.net.preferIPv4Stack=true
    But I have continuously happened to face for the following Memory out of bounce exception during compiling the application.
    An internal error occurred during: "Building Workspace". java.lang.OutOfMemoryError
    Following is the exception trace at <workspace>/.metadeta/.log file.
    eclipse.buildId=M20080911-1700
    java.version=1.6.0_11
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments:  -os win32 -ws win32 -arch x86
    !ENTRY org.eclipse.core.jobs 4 2 2010-05-12 08:14:47.007
    !MESSAGE An internal error occurred during: "Building Workspace".
    !STACK 0
    java.lang.OutOfMemoryError
    at java.io.RandomAccessFile.writeBytes(Native Method)
    at java.io.RandomAccessFile.write(Unknown Source)
    at  flex2.compiler.PersistenceStore.write(PersistenceStore.java: 154)
    at flex2.compiler.API.persistCompilationUnits(API.java:4154)
    at flex2.compiler.API.persistCompilationUnits(API.java:4133)
    at flex2.tools.oem.internal.OEMUtil.save(OEMUtil.java:163)
    at flex2.tools.oem.Application.save(Application.java:506)
    at  com.adobe.flexbuilder.multisdk.compiler.internal.ASBuilder.s aveState(ASBuilder.java:522)
    at  com.adobe.flexbuilder.multisdk.compiler.internal.ASItemBuild er.saveState(ASItemBuilder.java:94)
    at  com.adobe.flexbuilder.project.compiler.BuilderManager.maybeR emoveOldestBuilder(Unknown Source)
    at  com.adobe.flexbuilder.project.compiler.BuilderManager.getBui lder(Unknown Source)
    at  com.adobe.flexbuilder.project.compiler.internal.FlexIncremen talBuilder.preBuild(Unknown Source)
    at  com.adobe.flexbuilder.project.compiler.internal.FlexProjectB uilder.buildItem(Unknown Source)
    at  com.adobe.flexbuilder.project.compiler.internal.FlexProjectB uilder.build(Unknown Source)
    at  com.adobe.flexbuilder.project.compiler.internal.FlexIncremen talBuilder.build(Unknown Source)
    at  org.eclipse.core.internal.events.BuildManager$2.run(BuildMan ager.java:633)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at  org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:170)
    at  org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:201)
    at  org.eclipse.core.internal.events.BuildManager$1.run(BuildMan ager.java:253)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at  org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:256)
    at  org.eclipse.core.internal.events.BuildManager.basicBuildLoop (BuildManager.java:309)
    at  org.eclipse.core.internal.events.BuildManager.build(BuildMan ager.java:341)
    at  org.eclipse.core.internal.resources.Workspace.build(Workspac e.java:330)
    at  org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAc tion.java:182)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    Someone who please be kind enough to help me out to get rid of this exception, I have been working on days in finding a solution for this. What I found in every place was asking to increase the memory for JVM, as you can see I have already done it at the eclipse.ini file, but the error popping up continuously.
    Thanks a lot in  advance
    mmdsriya

    Try these tips:
    http://www.eclipsezone.com/eclipse/forums/t61618.html
    http://wiki.eclipse.org/FAQ_How_do_I_increase_the_permgen_size_available_to_Eclipse%3F
    I'm not sure why you have --launcher.XXMaxPermSize so high. You might have to tweak your settings for less perm gen space and more heap.
    Jason San Jose
    Software Engineer, Flash Builder

Maybe you are looking for

  • Trying to share music on home network and the advanced tab does not have home sharing on it what to do?

    I was setting up sharing & was trying to click on home sharing under the advanced tab and that item was not there. What can I do?

  • PR to GR Report

    Hi All, Is there any standard report to see the PR to GR details. its actually to  Calculate the KPI's for our Buyers. report need to show the PR details,final PR release date,Final PO release date,GR date etc.. I tried to search in the system ,but i

  • Emailing form results in Robo HTML

    Hi Guys. I'm an idiot. I have looked through this forum and I can't figure this out, and it seems like it must be so basic. I am using RoboHTML, and I want to use a form for feedback from my user peeps, because I want specific details that I'm afraid

  • Email Spools and than Kicks me out when delete or email turn off attempt.

    After attempting to create an exchange account, my iphone is giving me trouble. I want to delete the account, but it will spool or cycle if I try to turn off the email, fade to black, and then return me to the home page. I have tried different modes

  • Applications quit when screen saver is running

    Hi Forum Members - Recently, I have to reformat and reinstall my entire PowerBook drive using Tiger 10.4.4 and experiencing that applications quit each time when the screen saver is being activated. This was not the case previously. I scanned through