Archive for November, 2003

MySQL And SSL

Wednesday, November 12th, 2003

While working on an apparent MySQL connection hang I found this:  http://www.mysql.com/documentation/connector-j/index.html#id2802198.  So now I’ll be able to start thinking about an internet facing database!

Tomcat / MySql Hang

Wednesday, November 12th, 2003

I had a breakthrough today with my Tomcat hang. I’m using 5.0.14 beta on the site. It seems that from time to time Tomcat would hang up. On a whim I connected to the Tomcat manager app after roller and stuff hung up. It came up fine, there was no GC going on or anything. It smelled like database so I looled in the log and saw some io errors coming from the MySql driver. Here’s a link: http://www.mysql.com/documentation/connector-j/index.html#id2802490. It looks like autoReconnect is set in roller so there’s still a mystery.

James

Monday, November 10th, 2003

The idea of a Java mail system is intriguing. I’d like to be able to have more control of my mail system. It’ll be hard to give up sendmail, though. http://james.apache.org

Logging

Monday, November 10th, 2003




I could really benefit from spending some time working out a logging
strategy. Some output to syslog makes sense with the JavaCron code. Each
target class should have its own logger so they can run in parallel and
not lose or mingle output.

Funky Scanner

Monday, November 10th, 2003




Weird things have been happening with belloc. I can’t correlate it
directly, but this machine has never worked for a long time without error
reading temperatures froma scanner. The other two boxes worked for a long
time. I am using IBM JDK 1.4 with Javacomm and this may be the source of
some of the trouble. I tried 1.4 on mary-grace but had to back out when
it didn’t work. The .available() method always returns 0. I’ve got a
listener registered now to see what’s really happening. There may be some
flakieness in the scanner also. I need to test it on another machine
before debugging this further.

Nine Coins

Saturday, November 8th, 2003




You are given nine coins and a balance scale (you can accurately compare
the weight of two things). The coins are indistinguishable except by
weight. One is lighter than the other eight. What is the fewest number
of weighings you would require to identify the one coin.

Vertical Scalability

Saturday, November 8th, 2003




A customer has a p690 with 32 processors and 32 Gig of RAM. Two of his
engineers are arguing over how many copies of the applicaiton server to
run on the machine. The application has proven to scale well but session
persistence has shown a small overhead when used with no session affinity.
There are no other applications running on this machine to compete for
resources. One engineer wants to create one big JVM with 32 Gig of RAM
assigned as max heap (assume this is possible, tell me why if it isnt).
The other wants to create 32 JVMs, one for each CPU.

What is your advice?
What are their arguments?

Code Page

Saturday, November 8th, 2003



When


When I write myself a socket listener which returns a string of
information when connected to and run it on WebSphere 3.5 on Windows and
on the Mainframe, I get different results. The mainframe version gives me
EBCDIC output.
How are Strings encoded inside a JVM in an IBM mainframe? What code page is
used internally?

Painful Install

Friday, November 7th, 2003

It took a while to get this up and running. I installed tomcat 5.0.12 beta with Roller 0.9.8. I got the Cannot load JDBC driver class ‘null’ exception over and over again. I was having problems with Tomcat locking up also so I upgraded to 5.0.14 beta when it came out. The I upgraded to Roller 0.9.8.1. Nothing worked. In desperation I started fiddling in the XML files and writing JNDI test cases. Finally I removed all of the old mm.mysql-2.0.14-bin.jars out of Tomcat. It started working but broke another app. I edited the code to use the com.mysql instead of the org.gjt classes, redeployed and all is well.

Salary Squeeze?

Tuesday, November 4th, 2003

 Salary Squeeze - Computerworld

An interesting read but targets the low end of the market. The quality argument is hollow