The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

fatjar(oneJar) running very slow

Hi,

The old fatjar (OneJar) that i built three years ago runs faster than the new fatjar that i built recently.
In our production environment that new fatjar is running 4 times slower than the old jar.
I built the old jar using RAD7 IDE but the new one is built using RAD8.
The new jar has some new classes that support the new requirements.
The old and the jars use the same JVM and JDBC driver.
It is getting very hard to identify the reason for the slowness.
Any suggestions from you all?

Re: fatjar(oneJar) running very slow

Do you have a way to modify the code of the old jar and rebuild it using the same dependencies and whatnot? If so, the simplest thing to do is add some timing logic to your program and see what's using up the extra time.

If not, a google of "java profiler" will give you a ton of options. JProfiler comes to mind.

Or you might want to take a closer look at the new features you added. Could any of them explain the performance hit?

Re: fatjar(oneJar) running very slow

Originally Posted by KevinWorkman

Do you have a way to modify the code of the old jar and rebuild it using the same dependencies and whatnot? If so, the simplest thing to do is add some timing logic to your program and see what's using up the extra time.

If not, a google of "java profiler" will give you a ton of options. JProfiler comes to mind.

Or you might want to take a closer look at the new features you added. Could any of them explain the performance hit?

I just ran the old and new jars in development environment but the processing output is same. Processing the same number of requests approximately in same time.
I will do some testing.
Thanks for your help