• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Jboss Memory Issue

 
Ranch Hand
Posts: 111
Eclipse IDE Firefox Browser Debian
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 28425
102
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Eclipse IDE Firefox Browser Debian
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It makes total sense.
Thanks a lot.
 
reply
    Bookmark Topic Watch Topic
  • New Topic