LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-26-2008, 04:57 AM   #1
sea-bass
LQ Newbie
 
Registered: Dec 2006
Posts: 14

Rep: Reputation: 0
Cisco Load Balancers & Tomcat


Hi Folks,

This is a resurection of a problem that I think many fellow Administrators are experiencing but I think there has never been a real solution to the problem...

I am responsible for a web application

config is as follows

pix firewall -> cisco loadbalance -> apache webservers -> application -> Oracle DB

Problem that I am expericing is every time I try into introduce the appserver into the loadbalancer config, the keep alive request seems to be agrivating tomcat and causing it to crash.. this as you can imaging is very tiresome... :-) you have to have a sense of humour about these things...

Anyway the error message is

Nov 13, 2006 9:02:19 PM org.apache.tomcat.util.net.PoolTcpEndpoint processSocket
SEVERE: Socket error caused by remote host /xxx.xxx.xxx.xxx(This is the
IP address of the loadbalancer"

java.net.SocketException: Invalid argument

at java.net.PlainSocketImpl.socketSetOption(Native Method
at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:240)
at java.net.Socket.setTcpNoDelay(Socket.java:771)
at org.apache.tomcat.util.net.PoolTcpEndpoint.set contd......

This seems to be a popular message but I dont think there has been a resolution to this..

Now If I remove the appserver from the loadbalance problem dissappears ... obviously

The Loadbalancer is sending its keepalive request direct to port 8080
on the appserver

I am considering the following fix

1 : create a small webapp that check port 8080 itself, and point the loadbalancer to the *.jsp

Now has anyone else experienced this?

Good Talking

Sea-Bass
 
Old 02-26-2008, 10:19 PM   #2
my_seagul
LQ Newbie
 
Registered: Feb 2008
Location: Finland
Distribution: Fedora Core
Posts: 9

Rep: Reputation: 0
I used to get same kind of error into catalina.out when using only TCP keepalive. Luckily our Tomcat didn't crash...

You can get 'round this by doing exactly what you consider. Our developer made a jsp healtcheck page that polls database and checks the tomcat. If everything is ok, jsp page returns OK. If something is wrong, you get error message >> CSS will drop the connection.

Last edited by my_seagul; 02-27-2008 at 01:19 AM. Reason: this time my answer makes more sense :)
 
Old 02-27-2008, 04:52 AM   #3
sea-bass
LQ Newbie
 
Registered: Dec 2006
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by my_seagul View Post
I used to get same kind of error into catalina.out when using only TCP keepalive. Luckily our Tomcat didn't crash...

You can get 'round this by doing exactly what you consider. Our developer made a jsp healtcheck page that polls database and checks the tomcat. If everything is ok, jsp page returns OK. If something is wrong, you get error message >> CSS will drop the connection.
Hi my_seagul..

Thanks for the vote of confidence there..

I will be on site on monday to test this out so I will keep you posted...

Sea-Bass
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat 5.5 high processor load in Centos 5.1 cluster tijn_sol Linux - Server 0 02-07-2008 09:24 AM
linux-based load balancers with sticky connections (for balancing Terminal Servers) ? lumix Linux - Networking 2 01-22-2008 01:23 PM
Difference between Tomcat 1.5&1.6 and Apache 2.1 & 2.2 chnlinux Linux - Newbie 1 12-04-2007 09:44 PM
F5 Load Balancers jason.rohde General 0 11-08-2006 08:54 PM
Cisco VPN Client unable to load kernel module in FC5 cuco76 Linux - Software 3 10-19-2006 10:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration