Archive for March, 2009

Tomcat uses 100% of CPU

Monday, March 30th, 2009

As I posted last week, I installed Nagios and the monitoring clients on a couple of machines. One of the machines I started monitoring was the machine we use to provide some internal webservices access to Progress databases. And this machine turned out to have a problem: 100% CPU usage!

Further investigation narrowed this down to TomCat using 99-100% capacity (basically anything it can get!). I’ve only seen this once before, with Microsoft Access, but since TomCat isn’t a Microsoft product, I assumed there was something wrong with my setup. A little bit of digging revealed two possible solutions:

  1. There’s a bug in the Java engine. Apparently there is a Memory leak in the use of StringBuffer.toString() in version 1.4.1, and fixed in version 1.4.1_05. This bug was submitted way back in 2002, so I assume if I download a new version of Java I should be OK. And since I’m running a 1.6 version, I don’t think this is the issue.
  2. The AJP connector is misbehaving. I found a post (unfortunately can’t remember where…) pointing to this connector as the culprit, and the solution was to explicitly state some of the default values for the parameters, with the exception of the connectionTimeout parameter. Instead of stating the obvious to TomCat, I decided to modify server.xml, and modify the AJP connector just enough so that it knows the connectionTimeout is 5000ms instead of eternity.
    <Connector port=”8009″
    enableLookups=”false” redirectPort=”8443″ protocol=”AJP/1.3″
    connectionTimeout=”5000″
    />

After implementing that last solution, the CPU usage for the machine dropped from 100% to about 9%.

Tags: , , , , ,

Mobile viewing temporarily disabled

Monday, March 30th, 2009

After installing the latest Mobile plug-in, it generated an error. I have temporarily disabled the Mobile layout until this has been resolved. Sorry for the inconvenience.

Tags: , ,

Nagios – how to determine the name of a service in Windows

Friday, March 27th, 2009

I’ve recently set up Nagios on one of our test servers, and the Windows client for Nagios allows you to monitor services (whether they started, stopped, etc.). However, the name of the service to monitor isn’t always the same as the name in the Services application in Administrative Tools.

To find out the name of the service, you’ll have to look at the registry:

  1. Open up regedit (Run, regedit)
  2. Navigate to HKEY_LOCAL_MACHINE
  3. Navigate to SYSTEM
  4. Navigate to CurrentControlSet
  5. Navigate to Services
  6. Find the service you plan on monitoring. The name of the node is the name you need to enter on the Nagios server as the name of the service.

Tags: , , , , ,

Google tasks available on mobile phone and desktop

Wednesday, March 25th, 2009

Google tasks are now available on your mobile phone. With all the applications Google has available, they’re becoming a serious contender for my desktop Outlook.

Wish list for Tasks:

  1. Synchronize with Outlook Tasks
  2. Give me context ability (filter on @Calls, @Home, @Work, etc.)

Also, Google tasks is available as a stand-alone application by using the Chrome browser. Navigate to https://mail.google.com/tasks/ig in Chrome, use the Create Application Shortcuts in Chrome, and if needed resize the window. Alternative is to use the Adobe AIR version of Google Tasks.

Tags: , , , , , ,

Jon Stewart tries to makes sense of Twitter

Thursday, March 5th, 2009

New media is everywhere. What is someone who doesn’t “get it” to do? Ask Jon Stewart to explain.

Tags: , , , , , ,