1 Reply Latest reply: Aug 15, 2013 4:11 PM by jschellSomeoneStoleMyAlias RSS

    Increase the Wrapper java Free Memory

    907035

      Hello Guru's,

       

      Im having the Java application which runs as a windows service , It will process the CSV file of 5000 employees data , but currently we are getting the Out of Memory Java Heap Space error.In my conf file it is commented the Wrapper.java.initmemory=64.

       

      It is crashing in mid of processing those employees data , we have printed the Runtime.getMemory details, at it is showing as available Max Mem as 2271 and Allocated Mem as 183 MB and Free Mem as 173MB

       

      Please suggest the solution, how to increase the allocated memory to 1GB and FreeMemory as 512 MB

       

      Physical Mem: 12GB on server.

       

      Conf File:=

       

      # Java Library Path (location of Wrapper.DLL or libwrapper.so)

      wrapper.java.library.path.1=D:\HRIntegration\lib

       

      # Java Additional Parameters

      #wrapper.java.additional.1=

       

      # Initial Java Heap Size (in MB)

      #wrapper.java.initmemory=64

       

      # Maximum Java Heap Size (in MB)

      #wrapper.java.maxmemory=64

       

      # Application parameters.  Add parameters as needed starting from 1

      wrapper.app.parameter.1=com.apple.hr.autoMainThreads.DataFileMonitor

      #wrapper.app.parameter.1=com.apple.hr.ws.Test

      #********************************************************************

      # Wrapper Logging Properties

      #********************************************************************

      # Format of output for the console.  (See docs for formats)

      wrapper.console.format=PM

       

      # Log Level for console output.  (See docs for log levels)

      wrapper.console.loglevel=INFO

       

      # Log file to use for wrapper output logging.

      wrapper.logfile=D:\HRIntegration\logs\wrapper.log

       

      # Format of output for the log file.  (See docs for formats)

      wrapper.logfile.format=LPTM