• Post Reply Bookmark Topic Watch Topic
  • New Topic

Jboss Memory Issue  RSS feed

 
Ranch Hand
Posts: 111
Debian Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I'm having  memory issues  trying to deploy an application using a WAR with a lot of libraries in it.

My question is, does the server load each library when it needs it or are all libraries  loaded by default at the time of deployment?

btw, I'm using Jboss.

Thanks in advance.
 
Sheriff
Posts: 23607
48
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Typically a Java application loads a class the first time it is referred to by code which is running. And note, it's classes which are loaded, not libraries. It would be terribly wasteful, both of time and memory, for a Java application to load all of the classes in a library as soon as only one of them is required.

I have no reason to believe that JBoss works differently than any other Java application in terms of class loading; I would be thoroughly amazed if it loaded classes before they were needed.
 
Fernando Dominguez
Ranch Hand
Posts: 111
Debian Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It makes total sense.
Thanks a lot.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!