• Post Reply Bookmark Topic Watch Topic
  • New Topic

OutOfMemoryError in the bean access in wl6.0sp2

 
tony mao
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we query a table ,the result is almost 3000 records,at the same time there are 5 clients to call the bean to execute the query.
but every time we catch the OutOfMemoryError at runtime so what can we do with it and avoid the error,in depoly the bean or in programming the bean?
the memory of our PC is 528MB, is it not enough?

3kx a lot!
 
Lou Caudell
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have seen this with regards to two possibilities. One is related to JDBC and the database you are using ( verify that there are no bugs related to your db ), but more than likely you are attempting to store all of those records into variables or a serializable class that is in fact large enough to utilize that much memory. What is the size of one tuple in your table. Are you using data types that may allocate space larger than needed for the actual values? For instance String().
 
tony mao
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
3ks Lou Caudell
now i set the -mx528m, then the query passed!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!