• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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: 23876
50
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!