Hi
I have implemented a hub and spoke type of layout and sending files from 4 workstations to one server.
The probelm i ma facing is that even after increasing heap size max to 512 , i get messages memory out heap size issues
here is a log
INFO | jvm 1 | 2009/04/15 04:05:56 | Caused by: java.lang.OutOfMemoryError: Java heap space
INFO | jvm 1 | 2009/04/15 04:05:56 | at java.util.Arrays.copyOf(Arrays.java:2786)
INFO | jvm 1 | 2009/04/15 04:05:56 | at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:94)
INFO | jvm 1 | 2009/04/15 04:05:56 | at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
INFO | jvm 1 | 2009/04/15 04:05:56 | at java.io.BufferedOutputStream.write(BufferedOutputStream.java:109)
INFO | jvm 1 | 2009/04/15 04:05:56 | at de.mendelson.comm.as2.message.AS2Message.copyStreams(AS2Message.java:142)
INFO | jvm 1 | 2009/04/15 04:05:56 | at de.mendelson.comm.as2.message.AS2Message.uncompressData(AS2Message.java:231)
INFO | jvm 1 | 2009/04/15 04:05:56 | at de.mendelson.comm.as2.message.AS2Message.getDecryptedRawData(AS2Message.java:157)
INFO | jvm 1 | 2009/04/15 04:05:56 | at de.mendelson.comm.as2.message.AS2MessageParser.computeReceivedContentMIC(AS2MessageParser.java:263)
INFO | jvm 1 | 2009/04/15 04:05:56 | at de.mendelson.comm.as2.message.AS2MessageParser.createMessageFromRequest(AS2MessageParser.java:191)
INFO | jvm 1 | 2009/04/15 04:05:56 | at de.mendelson.comm.as2.server.AS2ServerRemoteImpl.newMessageArrived(AS2ServerRemoteImpl.java:129)
INFO | jvm 1 | 2009/04/15 04:05:56 | at de.mendelson.comm.as2.server.AS2ServerRemoteImpl.computeServerSite(AS2ServerRemoteImpl.java:304)
INFO | jvm 1 | 2009/04/15 04:05:56 | at de.mendelson.comm.as2.server.AS2ServerRemoteImpl.execute(AS2ServerRemoteImpl.java:97)
INFO | jvm 1 | 2009/04/15 04:05:56 | at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
INFO | jvm 1 | 2009/04/15 04:05:56 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
INFO | jvm 1 | 2009/04/15 04:05:56 | at java.lang.reflect.Method.invoke(Method.java:597)
INFO | jvm 1 | 2009/04/15 04:05:56 | at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
INFO | jvm 1 | 2009/04/15 04:05:56 | at sun.rmi.transport.Transport$1.run(Transport.java:159)
INFO | jvm 1 | 2009/04/15 04:05:56 | at java.security.AccessController.doPrivileged(Native Method)
INFO | jvm 1 | 2009/04/15 04:05:56 | at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
INFO | jvm 1 | 2009/04/15 04:05:56 | at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
INFO | jvm 1 | 2009/04/15 04:05:56 | at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
INFO | jvm 1 | 2009/04/15 04:05:56 | at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
INFO | jvm 1 | 2009/04/15 04:05:56 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
INFO | jvm 1 | 2009/04/15 04:05:56 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
INFO | jvm 1 | 2009/04/15 04:05:56 | at java.lang.Thread.run(Thread.java:619)
INFO | jvm 1 | 2009/04/15 04:05:56 | Apr 15, 2009 4:05:56 AM de.mendelson.util.rmi.RMISenderAS2 sendRequest
INFO | jvm 1 | 2009/04/15 04:05:56 | INFO: Warning on the server site, request could not be executed!
INFO | jvm 1 | 2009/04/15 04:05:56 | Apr 15, 2009 4:05:56 AM de.mendelson.util.rmi.RMISenderAS2 sendRequest
INFO | jvm 1 | 2009/04/15 04:05:56 | INFO: Error message returned by the call:
INFO | jvm 1 | 2009/04/15 04:05:56 | Apr 15, 2009 4:05:56 AM de.mendelson.util.rmi.RMISenderAS2 sendRequest
INFO | jvm 1 | 2009/04/15 04:05:56 | INFO: Error occurred in server thread; nested exception is:
INFO | jvm 1 | 2009/04/15 04:05:56 | java.lang.OutOfMemoryError: Java heap space
INFO | jvm 1 | 2009/04/15 04:05:56 | Apr 15, 2009 4:05:56 AM de.mendelson.comm.as2.servlet.HttpReceiver informAS2ServerIncomingMessage
INFO | jvm 1 | 2009/04/15 04:05:56 | SEVERE: Warning on the server site, request could not be executed!
INFO | jvm 1 | 2009/04/15 04:05:56 | Apr 15, 2009 4:05:56 AM de.mendelson.comm.as2.servlet.HttpReceiver informAS2ServerIncomingMessage
INFO | jvm 1 | 2009/04/15 04:05:56 | SEVERE: Error message returned by the call:
INFO | jvm 1 | 2009/04/15 04:05:56 | Apr 15, 2009 4:05:56 AM de.mendelson.comm.as2.servlet.HttpReceiver informAS2ServerIncomingMessage
INFO | jvm 1 | 2009/04/15 04:05:56 | SEVERE: Error occurred in server thread; nested exception is:
INFO | jvm 1 | 2009/04/15 04:05:56 | java.lang.OutOfMemoryError: Java heap space
Hi
I have implemented a hub and spoke type of layout and sending files from 4 workstations to one server.
The probelm i ma facing is that even after increasing heap size max to 512 , i get messages memory out heap size issues
here is a log
INFO | jvm 1 | 2009/04/15 04:05:56 | Caused by: java.lang.OutOfMemoryError: Java heap space
INFO | jvm 1 | 2009/04/15 04:05:56 | at java.util.Arrays.copyOf(Arrays.java:2786)
INFO | jvm 1 | 2009/04/15 04:05:56 | at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:94)
INFO | jvm 1 | 2009/04/15 04:05:56 | at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
INFO | jvm 1 | 2009/04/15 04:05:56 | at java.io.BufferedOutputStream.write(BufferedOutputStream.java:109)
INFO | jvm 1 | 2009/04/15 04:05:56 | at de.mendelson.comm.as2.message.AS2Message.copyStreams(AS2Message.java:142)
INFO | jvm 1 | 2009/04/15 04:05:56 | at de.mendelson.comm.as2.message.AS2Message.uncompressData(AS2Message.java:231)
INFO | jvm 1 | 2009/04/15 04:05:56 | at de.mendelson.comm.as2.message.AS2Message.getDecryptedRawData(AS2Message.java:157)
INFO | jvm 1 | 2009/04/15 04:05:56 | at de.mendelson.comm.as2.message.AS2MessageParser.computeReceivedContentMIC(AS2MessageParser.java:263)
INFO | jvm 1 | 2009/04/15 04:05:56 | at de.mendelson.comm.as2.message.AS2MessageParser.createMessageFromRequest(AS2MessageParser.java:191)
INFO | jvm 1 | 2009/04/15 04:05:56 | at de.mendelson.comm.as2.server.AS2ServerRemoteImpl.newMessageArrived(AS2ServerRemoteImpl.java:129)
INFO | jvm 1 | 2009/04/15 04:05:56 | at de.mendelson.comm.as2.server.AS2ServerRemoteImpl.computeServerSite(AS2ServerRemoteImpl.java:304)
INFO | jvm 1 | 2009/04/15 04:05:56 | at de.mendelson.comm.as2.server.AS2ServerRemoteImpl.execute(AS2ServerRemoteImpl.java:97)
INFO | jvm 1 | 2009/04/15 04:05:56 | at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
INFO | jvm 1 | 2009/04/15 04:05:56 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
INFO | jvm 1 | 2009/04/15 04:05:56 | at java.lang.reflect.Method.invoke(Method.java:597)
INFO | jvm 1 | 2009/04/15 04:05:56 | at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
INFO | jvm 1 | 2009/04/15 04:05:56 | at sun.rmi.transport.Transport$1.run(Transport.java:159)
INFO | jvm 1 | 2009/04/15 04:05:56 | at java.security.AccessController.doPrivileged(Native Method)
INFO | jvm 1 | 2009/04/15 04:05:56 | at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
INFO | jvm 1 | 2009/04/15 04:05:56 | at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
INFO | jvm 1 | 2009/04/15 04:05:56 | at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
INFO | jvm 1 | 2009/04/15 04:05:56 | at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
INFO | jvm 1 | 2009/04/15 04:05:56 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
INFO | jvm 1 | 2009/04/15 04:05:56 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
INFO | jvm 1 | 2009/04/15 04:05:56 | at java.lang.Thread.run(Thread.java:619)
INFO | jvm 1 | 2009/04/15 04:05:56 | Apr 15, 2009 4:05:56 AM de.mendelson.util.rmi.RMISenderAS2 sendRequest
INFO | jvm 1 | 2009/04/15 04:05:56 | INFO: Warning on the server site, request could not be executed!
INFO | jvm 1 | 2009/04/15 04:05:56 | Apr 15, 2009 4:05:56 AM de.mendelson.util.rmi.RMISenderAS2 sendRequest
INFO | jvm 1 | 2009/04/15 04:05:56 | INFO: Error message returned by the call:
INFO | jvm 1 | 2009/04/15 04:05:56 | Apr 15, 2009 4:05:56 AM de.mendelson.util.rmi.RMISenderAS2 sendRequest
INFO | jvm 1 | 2009/04/15 04:05:56 | INFO: Error occurred in server thread; nested exception is:
INFO | jvm 1 | 2009/04/15 04:05:56 | java.lang.OutOfMemoryError: Java heap space
INFO | jvm 1 | 2009/04/15 04:05:56 | Apr 15, 2009 4:05:56 AM de.mendelson.comm.as2.servlet.HttpReceiver informAS2ServerIncomingMessage
INFO | jvm 1 | 2009/04/15 04:05:56 | SEVERE: Warning on the server site, request could not be executed!
INFO | jvm 1 | 2009/04/15 04:05:56 | Apr 15, 2009 4:05:56 AM de.mendelson.comm.as2.servlet.HttpReceiver informAS2ServerIncomingMessage
INFO | jvm 1 | 2009/04/15 04:05:56 | SEVERE: Error message returned by the call:
INFO | jvm 1 | 2009/04/15 04:05:56 | Apr 15, 2009 4:05:56 AM de.mendelson.comm.as2.servlet.HttpReceiver informAS2ServerIncomingMessage
INFO | jvm 1 | 2009/04/15 04:05:56 | SEVERE: Error occurred in server thread; nested exception is:
INFO | jvm 1 | 2009/04/15 04:05:56 | java.lang.OutOfMemoryError: Java heap space
Forgot to mention the version used build 25 and OS Is W2K3 server.I use the JVM machine shipped with buidl 25 instead of installing the sun java jvm
Avinash75,
please move to mendelson open source AS2 build 27, it faces this memory issue. Anyway it is possible to pass up to 1.4GB to the VM. Please set this max heap size if you are still running into memory problems after the update.
Regards
Heller
Hi Heller
Thanks for the update i will test B27 and see if it fxies our issue.
One concnern which i have is with the numbe rof partners i have to reoconfigure them will be a problem for me.
is there a possibility of tranbsfering the settings across from B25 to B27 like pratners , preferences ?
Avinash75,
migration is fairly easy, just install build 27 over build 25, it will automatically update the database and import the settings/partners. There are some files that should not be overwritten but the installer will ask for these to overwrite. Please create a backup before updating.
Regards
Heller