ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » Mq Put java.lang.OutOfMemoryError ???

Post new topic  Reply to topic
 Mq Put java.lang.OutOfMemoryError ??? « View previous topic :: View next topic » 
Author Message
thimerion
PostPosted: Wed Feb 20, 2008 1:31 am    Post subject: Mq Put java.lang.OutOfMemoryError ??? Reply with quote

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
View user's profile Send private message
Gaya3
PostPosted: Wed Feb 20, 2008 2:45 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Mq Put java.lang.OutOfMemoryError ???
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.