• Post Reply Bookmark Topic Watch Topic
  • New Topic

JBoss Memory Management  RSS feed

 
Jeff Storey
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I have a multi-user system in which one of the potential operations that a user can perform uses a large amount of memory (this operation is peformed by a service running on the JBoss server). Hypothetically, if many users were to run this operation at once, the system could run out of memory. Is there a way for the JVM to "check" if it has enough memory to perform a specified operation and then wait until that amount of memory is available or do I need to develop a queueing system of some sort?

Thanks.
Jeff Storey
 
Vinay Raj
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A queueing system would be recommended. I am sure you are aware of your memory needs per operation. Define the JVM size and your MDB max size accordingly. This would be an efficient solution.
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you also already tuned the JVM? What are your -Xms and -Xmx settings, and what are your settings for the Heap size ratios. While you still have a limit in the end, maybe you are using the basic default settings for the jvm, which are far from highly tuned. set at min 128MB max 512MB.

Mark
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!