Results 1 to 2 of 2

Thread: Out of memory issue

  1. #1

    Default Out of memory issue

    Hi All,

    When i start the tomcat,I am getting heap exception(out of memory) .

    Recently i have made the following modifications before this its working fine.

    i am using spring and hibernate in my application.

    1. I added some 15 hbm mapping files(total 36) to the application. i added these entries in the appliction-context.xml.

    after this when i start the application i got the out of memory error.

    i resolved this with the following changes , but it should work fine without these changes.

    1.If i increase the heap memory in tomcat server.xml its working fine without giving any error. but in the production server we cannot change server memory settings , with default memory only it should work fine.

    2. I added some hbm files(total 32) in the application-context.xml then the application working fine.




    Regards,
    Vishnu.

  2. #2
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,796

    Default

    Hello

    heap memory in tomcat server.xml
    Could you share such values? from your pc and production server?

    The problem seems not be related with Spring, is about Tomcat itself.

    Tell me, the problem is only related when you add new hbm files?
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •