• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Performance Advice

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a standalone Java application with threads that does some background processes while communicating to a MySQL database. This application runs 24/7 and has no issues with consistency. However I am looking for ways to optimize my application so that it can process faster.

My questions to you are:

1) Would my application run significantly faster if it was launched from the command line rather than running inside a Tomcat container?
2) Because I’m running a background application with no communications from website visitors is Tomcat even needed?

I don’t believe that Tomcat is my only bottleneck but I guess this is a good place to start.

Thank you and I look forward to your advice.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. Naturally we would recommend that you measure time spent in various parts of the code with something like JAMON.

2. One advantage of continuing with Tomcat might be that you can write a administrate/monitoring interface for the application which can be accessed with a browser from anywhere on your network.

A tomcat that is not answering requests has very little to do so I doubt it influences your application speed.

Bill
reply
    Bookmark Topic Watch Topic
  • New Topic