• 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

Memory Out of bounds

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
dear all,

i have a customized RequestProcessor which will clone (for backup) each of the bean generated for the request and keep it in the session in an arraylist. to the maximum only 2 cloned beans can exists, others are removed periodically from the arraylist. this customrequestprocessor works to the core of the project arch to keep the beans for a special situation. our project's transaction pages uses various beans and VOs to store data and they keep the beans in the session for managing the data along different pages. the beans and VOs may have more data compared to the ActionForm bean, as this may contain only the field values of the pages.

The question is,
is the cloning of the ActionForm bean was the main reason that causes the outofmemory exeception? the exception is thrown whenever the deployment is done in the server. every time the server needs to be restarted manually for this problem?

I use BeanUtils for cloning and property copying.

can the reason be, as the customrequestprocessor was working to the core, there might be some request that are being served by the processor, in the mean time when a new class file was over written in the name of deployment, the server crashes. or something similar to this. i also have found this situation when i manually replace the customrequestprocessor class file in the server rather deploying while anyone (testing?) working on our web application.

Thanks

Vijay Veeraraghavan
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

The question is, is the cloning of the ActionForm bean was the main reason that causes the outofmemory exeception?


I'm not sure how we could answer that question without any more information. I seriously doubt it, but not knowing anything about your request processor, the size of the beans, etc. it's impossible to say.

Since the error happens only on redeployment it's very unlikely.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic