Two Laptop Bag*
The moose likes Performance and the fly likes How many jars to use at the maximum for a swing deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "How many jars to use at the maximum for a swing deployment" Watch "How many jars to use at the maximum for a swing deployment" New topic
Author

How many jars to use at the maximum for a swing deployment

Sethuraman Ramasubramanian
Greenhorn

Joined: Apr 26, 2009
Posts: 7
Hi,

I am working on a desktop swing application. The application uses a lot of jars. I am using a whole lot of apache jars, itext, swingfx, etc etc. At the moment when I deploy the application there are a total of 60 jars. Is there a problem if I keep adding more jars into a project? Will this slow down anything? I was thinking that jvm should be able to handle any number of jars. After all it will load a class and once there are no more instances (or at some time the JVM thinks fit) it will unload the class. So it should only be a problem when the JVM needs to search a huge number of jars to load a class. Is this true? I am just rambling..
The bottom line is, is there anything defined in any spec regarding the maximum number of jars (or classes) an application should have after which things will start getting really slow.

Thanks
Sethu
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15957
    
  19

Somebody asked that question not long ago. It's always a good idea to keep the resources required for an application to a minimum, but our conclusion, I believe, was that the classloading mechanism slowed that much by having extra jars.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
Don't get me started about those stupid light bulbs.
 
subject: How many jars to use at the maximum for a swing deployment
 
Similar Threads
Too many class loaders?
Unable to load lookAnd feel Jar for my java application
lookAnd Feel jar not working .Help required Urgent
Performance and Scalability
JVM: Could not find the main class. Program will exit