Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

OutOfMemory Exception when calling an EJB  RSS feed

 
meka toka
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Environment:
-------------
JBoss 3.0.6, EJB 2.0, CMP 2.0
Problem:
---------
I have a JBoss server sending a message to a client machine, which is supposed to collect data and send the data over to the server.
The client calls a session bean on the server, and sends a custom java object to the server.
The call is failing giving me an OutOfMemory Exception.
The server is running on a P4 2.0 GHZ, 384MB DDR RAM.
Can somebody tell me whats wrong or point me to a document which tells me any settings i might have to do.
TIA
Meka Toka
 
Ghulam Rashid
Ranch Hand
Posts: 278
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start your JBoss server with higher heap size. Probably this will solve your problem temporary.
Rashid
 
meka toka
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tried that already with the following options
-Xms128 -Xmx256
-Xms512 -Xmx1024
Still got the same problem !!
Any ideas

TIA
Meka Toka
 
Dana Hanna
Ranch Hand
Posts: 227
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tell us more about this "custom java object"
 
meka toka
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Well the object had some Vectors in it, thats about it. But it was in the order of 500-800 Kb, i am using the default Hypersonic database that comes with the JBoss 3.0.6
Well i did go through the hypersonic page at the Sourceforge.net, they were saying that there were times when they could store BLOBS upto 1MB.
Anyways, that was the information i found. I solved my OutOfMemory exception problem, there was a problem in the way we were collecting data. That process put a lot of load and at the time of sending data it was giving out of memory. We fixed it by optimizing our method.
Well that was solved but when i try to write to database it was giving me java.sql.ConnectionBrokem exception.
I had to resort to storing the files into a filesystem and storing the resource URL into the database.
If anybody has better ideas, they are welcome
I am currently looking for a opensource object database, which IS THE BEST ?
Thank You
Meka Toka
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!