• 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 Issues with JPA

 
Greenhorn
Posts: 10
Eclipse IDE Python Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I am facing memory problem when after the J2EE application is running for more than 3-4 hrs with 20-40 users.
I have a 3-Tier J2EE application distributed as under

1) Data Access Layer (JPA 2.0 with Eclipse Link - EJB 3.1).
2) Business Logic Layer (EJB 3.1)
3) Presentation Layer (JSF 2.0).
Server Used is Glassfish 3.0.1 on windows 2003 server.

Kindly suggest as the memory used by Glassfish Process is insane.

Regards,
Nilesh Chhapru
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nilesh,

Welcome to the forums!

Kindly suggest as the memory used by Glassfish Process is insane.


You'll need to be much more specific on the memory usage and why you think the memory used by Glassfish is insane. Are you sure it's not your application which is using up that memory? Have you done any profiling using a profiler? What does it show?

 
Nilesh Chhapru
Greenhorn
Posts: 10
Eclipse IDE Python Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply....

I have used jmap command on the glassfish process id and it gives high memory for all persistence classes.
Also, if there is issue with the code or Application then that would behave the same after i deploy and not after 4-5 hrs with 30-40 users.

Regards,
Nilesh Chhapru.
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Nilesh Chhapru wrote:
Also, if there is issue with the code or Application then that would behave the same after i deploy and not after 4-5 hrs with 30-40 users.


Not really. An application which holds on to the objects can lead to a memory leak over time and since you mention that it's the application's persistence classes, then the chances are that it might be a application issue than anything to do with GlassFish. You'll have to check how those persistence classes are being used in your application and why those accumulate over time.
 
Nilesh Chhapru
Greenhorn
Posts: 10
Eclipse IDE Python Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
its still a doubt to me....

i am also not able to know that where is the problem in the architecture...
can you guide me on to how to know the exact issues in step by step...


Regards,
Nilesh Chhapru.
 
Trust God, but always tether your camel... to this tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic