|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Mq Put java.lang.OutOfMemoryError ??? |
« View previous topic :: View next topic » |
Author |
Message
|
thimerion |
Posted: Wed Feb 20, 2008 1:31 am Post subject: Mq Put java.lang.OutOfMemoryError ??? |
|
|
Acolyte
Joined: 08 May 2007 Posts: 67 Location: Belgium
|
Hi,
I am using following code to put a message of 12MB without segmentation:
// Get the size of the file and make the buffer that big
outbyte = getBytesFromFile(file);
int maxSize = outbyte.length;
int fileSize;
fileSize = maxSize;
MQMessage putMessage = new MQMessage();
// put the message to the MQ queue
putMessage.write(outputByte, 0, fileSize);
queue.put(putMessage, pmo);
qMgr.commit();
} catch (OutOfMemoryError e) {
throw new Exception("OutOfMemoryError: " + e.toString(),
Exception.ERROR);
}
I get the error FATAL OutOfMemoryError: java.lang.OutOfMemoryError
I already tried to start java with following JVM arguments, but that did not solve the issue:
java -XX:PermSize=256M -XX:MaxPermSize=256M
Do I do need to increase more? Or is there some other reason?
Regards,
Tim |
|
Back to top |
|
 |
Gaya3 |
Posted: Wed Feb 20, 2008 2:45 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
hi
Increase the memory heap, and test it
Regards
Gayathri _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|