• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

OutOfMemoryError in the bean access in wl6.0sp2

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
3ks Lou Caudell
now i set the -mx528m, then the query passed!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic