J
jross
Hi All,
I'm running a simple perl script that checks if port 3306(mysql) is open
or not and display's either PASSED or FAILED
Perl Code: http://pastebin.org/108205
This small script seems to be working fine, but when I put into place
our java applications that are using mysql though the jdbc driver
started to crash (The services crash over night after a jboss restart).
I started to do some testing and made a small java class to replicate
what our java apps are doing
Java Code: http://pastebin.org/108202
Running both these scripts at the some time seemed to be ok, but after a
while the jdbc driver was complaining about
"Server configuration denies access to data source"
Output of `netstat -tnap | grep 3306` after running and crashing it a
few times: http://pastebin.org/108212
As you can see there a heap of packets queued for sending and receiving
after a crash.
The perl script is closing the socket correctly, but I'm not sure if the
jdbc driver is closing the sockets correctly??
It could be something in the java code. I did have java complaining
about the stack size saying "increase stack size with ulimit -s ". I
increased the stack size and got an error which was logged, I have
attached the log to this email.
What I'm using:
JDBC Driver: mysql-connector-java-2.0.14-bin.jar
JAVA: j2sdk1.4.2_10
Perl: v5.10.0
OS: Fedora Core 4
How I tested -
After compiling my java class I run:
while [ 0=0 ];do java -cp /path/to/jdbc_driver.jar:. test_class; sleep
3;done
Then run the perl script with:
while [ 0=0 ]; do ./perl_script.pl; sleep 2; done
Note: Running the perl script every 2 seconds or more took awhile to
crash the java class, but deceasing it speeded up the crash, especially
if you have no sleep command (it will crash straight away).
Any Help would be appreciated and I'm happy to provide any more info if
needed
Cheers
Joel.C
I'm running a simple perl script that checks if port 3306(mysql) is open
or not and display's either PASSED or FAILED
Perl Code: http://pastebin.org/108205
This small script seems to be working fine, but when I put into place
our java applications that are using mysql though the jdbc driver
started to crash (The services crash over night after a jboss restart).
I started to do some testing and made a small java class to replicate
what our java apps are doing
Java Code: http://pastebin.org/108202
Running both these scripts at the some time seemed to be ok, but after a
while the jdbc driver was complaining about
"Server configuration denies access to data source"
Output of `netstat -tnap | grep 3306` after running and crashing it a
few times: http://pastebin.org/108212
As you can see there a heap of packets queued for sending and receiving
after a crash.
The perl script is closing the socket correctly, but I'm not sure if the
jdbc driver is closing the sockets correctly??
It could be something in the java code. I did have java complaining
about the stack size saying "increase stack size with ulimit -s ". I
increased the stack size and got an error which was logged, I have
attached the log to this email.
What I'm using:
JDBC Driver: mysql-connector-java-2.0.14-bin.jar
JAVA: j2sdk1.4.2_10
Perl: v5.10.0
OS: Fedora Core 4
How I tested -
After compiling my java class I run:
while [ 0=0 ];do java -cp /path/to/jdbc_driver.jar:. test_class; sleep
3;done
Then run the perl script with:
while [ 0=0 ]; do ./perl_script.pl; sleep 2; done
Note: Running the perl script every 2 seconds or more took awhile to
crash the java class, but deceasing it speeded up the crash, especially
if you have no sleep command (it will crash straight away).
Any Help would be appreciated and I'm happy to provide any more info if
needed
Cheers
Joel.C