This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Performance and the fly likes Performance Advice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "Performance Advice" Watch "Performance Advice" New topic

Performance Advice

Tan Springs

Joined: Dec 02, 2010
Posts: 1
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.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12761
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.

I agree. Here's the link:
subject: Performance Advice
Similar Threads
JForum Won't Load
Problem while running an external program from struts application at serverside
start and shutdown of remote JBoss
Run jboss after Logoff from windows
Got Groovy to work, now a problem with Grails - would appreciate help