Max OS X Tomcat web application server intermittantly very slow response


A Mac OS X 10.6 is running Tomcat 5.5. Performance can be very, very slow at times ... 10+ second waits. At other times it is very fast ... on the same page, doing the same thing. The longer it is between activity on the browser the more likely a long delay is going to occur. So if user keeps hitting the page response will be good for maybe 20 hits before a slow down. If user waits a minute response is likely to be poor right away. When the delay happens the browser page is blank. There are no log entries indicating a network problem.

This problem seemed to appear when we moved offices. At that time a managed switch was removed and replaced by an unmanaged switch. Another Mac was set up with identical applications on Tomcat. Initially it ran fine with no long delays but then I changed its default gateway to a different router and it then showed intermittant slow reponse.

This performance problem occurs both on the Internet and inside the network. It is very frustrating and we've tried quite a few things to resolve it.

There is nothing about the application that is being run that would cause this slow down. It is definitely a network issue. Everything used to work fine at our old office. Cannot think of what could be causing the trouble.

Who is Participating?
pdegregorioConnect With a Mentor Author Commented:
I have changed the dns settings of the main server (the one with the problem) from

DNS Server: isp_dns_server_a, isp_dns_server_b
Search Domains:


DNS Server: local_dns_server, isp_dns_server_a, isp_dns_server_b
Search Domains: local_domain_name

DNS Server:, 123.123l.123.1,
Search Domains: ABC

... and this may have improved things. Don't know why.
Do you have two gateways setup on your network?
pdegregorioAuthor Commented:
There used to be two gateways. Now there is only one.
SMB Security Just Got a Layer Stronger

WatchGuard acquires Percipient Networks to extend protection to the DNS layer, further increasing the value of Total Security Suite.  Learn more about what this means for you and how you can improve your security with WatchGuard today!

pdegregorioAuthor Commented:
Yes the DNS change has fixed the performance issue.
It sounds like your internal DNS servers are able to provide name resolution to the resources the server is looking for.
pdegregorioAuthor Commented:
Yes that seems logical but I don't get it. The application is entirely hosted on the server. There are no external resources. References to the database are "localhost". Don't know why a LAN  DNS server would matter. Don't think it was there before. Any ideas?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.