|
From: Gordon K S. <go...@si...> - 2007-05-24 16:24:24
|
Leif, I had this and several other logging settings set to DEBUG. When I changed them to INFO to run this test the application worked. At this time the application is working as expected. Gordon -----Original Message----- From: Leif Mortenson [mailto:le...@ta...] Sent: Thursday, May 24, 2007 7:26 AM To: go...@si...; wra...@li... Subject: Re: [Wrapper-user] JNI memory Gordon, Can you add the following to your wrapper.conf file. I want to check your generated command line and make sure the memory settings are correct. wrapper.java.command.loglevel=INFO The Wrapper shouldn't be affecting this. Cheers, Leif Gordon K Short wrote: > > This process, when initiated without the wrapper, operates just fine. > There is a 1GB maxsize set, and the application attempts to allocate > .5GB of that as a buffer to store binary objects. > > > > Using the wrapper, once the application attempts to allocate the > buffer the error below is issued. > > > > Any ideas of how to overcome this problem will be much appreciated. > > > > > > > > WrapperSimpleApp: invoking main method > > INFO | jvm 1 | 2007/05/18 02:41:53 | [2007-05-18 02:41:53,296 > INFO HostMngr main ?]: loading /siftology/host/host.properties > > INFO | jvm 1 | 2007/05/18 02:41:53 | [2007-05-18 02:41:53,306 > DEBUG HostMngr main ?]: max direct buffer size: 1048576000 > > INFO | jvm 1 | 2007/05/18 02:41:53 | [2007-05-18 02:41:53,306 > DEBUG HostMngr main ?]: allocating direct buffer: 500 MB > > INFO | jvm 1 | 2007/05/18 02:41:53 | > > INFO | jvm 1 | 2007/05/18 02:41:53 | WrapperSimpleApp: > Encountered an error running main: java.lang.OutOfMemoryError > > INFO | jvm 1 | 2007/05/18 02:41:53 | java.lang.OutOfMemoryError > > INFO | jvm 1 | 2007/05/18 02:41:53 | at > sun.misc.Unsafe.allocateMemory(Native Method) > > INFO | jvm 1 | 2007/05/18 02:41:53 | at > java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:99) > > INFO | jvm 1 | 2007/05/18 02:41:53 | at > java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288) > > INFO | jvm 1 | 2007/05/18 02:41:53 | at > com.siftology.system.host.HostMngr.main(Unknown Source) > > INFO | jvm 1 | 2007/05/18 02:41:53 | at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > INFO | jvm 1 | 2007/05/18 02:41:53 | at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) > > INFO | jvm 1 | 2007/05/18 02:41:53 | at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) > > INFO | jvm 1 | 2007/05/18 02:41:53 | at > java.lang.reflect.Method.invoke(Method.java:597) > > INFO | jvm 1 | 2007/05/18 02:41:53 | at > org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240) > > INFO | jvm 1 | 2007/05/18 02:41:53 | at > java.lang.Thread.run(Thread.java:619) > > INFO | jvm 1 | 2007/05/18 02:41:53 | WrapperSimpleApp: > start(args) end. Main Completed=true, exitCode=1 > > INFO | jvm 1 | 2007/05/18 02:41:53 | WrapperListener.start runner > thread stopped. > |