Welcome to the Java Programming Forums


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.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: fatjar(oneJar) running very slow

  1. #1
    Junior Member
    Join Date
    Aug 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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?

    Thanks
    Aadil


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,298
    My Mood
    Hungover
    Thanks
    142
    Thanked 620 Times in 531 Posts

    Default Re: fatjar(oneJar) running very slow

    Run a profiler to figure out where the time is being spend in each.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Junior Member
    Join Date
    Aug 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: fatjar(oneJar) running very slow

    Any specific profiler?

  4. #4
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,298
    My Mood
    Hungover
    Thanks
    142
    Thanked 620 Times in 531 Posts

    Default 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?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  5. #5
    Junior Member
    Join Date
    Aug 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: fatjar(oneJar) running very slow

    Quote Originally Posted by KevinWorkman View Post
    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

Similar Threads

  1. Replies: 21
    Last Post: June 12th, 2013, 11:33 AM
  2. AESCrypt - Very slow file encryption
    By DinhoPereira in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: March 16th, 2012, 03:14 PM
  3. slow motion replays of previous games
    By WhatIsJavaAnyhow in forum Java Theory & Questions
    Replies: 10
    Last Post: December 3rd, 2010, 02:45 PM
  4. Crawler is getting slow
    By manokrrish in forum Threads
    Replies: 3
    Last Post: October 18th, 2010, 09:24 AM
  5. Web Crawling is too Slow!
    By sankar236 in forum Java Networking
    Replies: 5
    Last Post: September 29th, 2010, 09:37 AM