Operating System - HP-UX
1833323 Members
2974 Online
110051 Solutions
New Discussion

Re: Problem with HP UX 11.00 and jakarta tomcat

 
Noel Kienzle
New Member

Problem with HP UX 11.00 and jakarta tomcat

Hi,
I have a problem using jakarta-tomcat 3.2.1 / 3.2.2 standalone on HP UX 11.00.
I can start tomcat normally without getting any errors. The error occurs when I try to access tomcat.
In the tomcat source the position is the call of a Java method: ServerSocket.accept() this method starts
the listening on the specified port (8080).
I wrote a little program (Java), to be sure there are no other tomcat component making problems,
that uses the same method (accept) to listen on port 8080. When trying to access this application a Socketexception
is thrown.
I also tried that as root.
We have other machines running the same operating system and tomcat works well.

What could this be?

The tomcat error message:

2001-03-06 05:28:49 - PoolTcpEndpoint: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8090] ignored exception:
java.net.SocketException: Socket closed - java.net.SocketException:
Socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:418)
at java.net.ServerSocket.implAccept(ServerSocket.java:240)
at java.net.ServerSocket.accept(ServerSocket.java:224)
at org.apache.tomcat.service.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:286)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:402)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:479)



Many thanks

Noel Kienzle
4 REPLIES 4
Dietmar Kraume
New Member

Re: Problem with HP UX 11.00 and jakarta tomcat

Hi,
do you find a solution in the meantime?
I have exactly the same problem and i can't
find a workaround.

Can you advise?
Thank you in advance for any help!
Daniel LaBonte
Occasional Contributor

Re: Problem with HP UX 11.00 and jakarta tomcat

Hi,

We were seeing the same problems with Tomcat running on an HP-UX 11.00 during system load testing.
Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8300] shutdown due to exception: java.net.SocketException: No buffer space available

What we found was that using a telnet window, which was displaying stout from Tomcat, couldn't keep up with the application load. Once Tomcat was started with a Xterm window we received no more errors.

There is also some information on how to set buffer space within the kernel...
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xe0f8a12d6d27d5118fef0090279cd0f9,00.html

Hope this helps...
Dan
Noel Kienzle
New Member

Re: Problem with HP UX 11.00 and jakarta tomcat

The problem is not the xterm, I have been using an xterm for months running tomcat correctly. Then 3 things changed:
A new Network Card was installed 100Mbit,
The IP-Adress changed,
and last some patches were installed
Problem: at the moment I don't know which patches, cause Ididn't install them.
We are running Oracle Database, Apache and so on and they are all running correctly. It's only tomcat or other Java Programs that try to listen and open sockets.
They listen, but when recieving a request the above error occurs.
In other newsgroup I found some messages saying that this problem is caused by "some patches", but nobody defines which?
For better understanding I'll add the little java program causing the same error, as you can see, it is really small and does nothing, so I don't think it can produce load or buffer overflows.
Many thanks to you all, hope we find a solution soon

Noel Kienzle


Java:
import java.io.*;
import java.net.*;

public class socketeer{
public static void main(String args[]){
try{
ServerSocket ss= new ServerSocket(2000);
System.out.println("Listening");
Socket s = ss.accept();
InputStream is = s.getInputStream();
DataInputStream dis = new DataInputStream(is);
String test = dis.readLine();
System.out.println(test);
OutputStream os = s.getOutputStream();
DataOutputStream dos= new DataOutputStream(os);
dos.writeChars("Hallo Test");
dos.flush();
dos.close();
s.close();
ss.close();
}catch(Exception e){
System.out.println(e.getClass().getName());
e.printStackTrace();
}
}
}
Christian Hettler
New Member

Re: Problem with HP UX 11.00 and jakarta tomcat

hi,

something to thought about:
A500:
- PHNE_21767 is installed (active)
- socketeer (as mention by Noel) is running
- install PHNE_23456: socketeer fails
- swremove PHNE_23456: socketeer is running (PHNE_21767 is active)

D390/2:
- PHNE_23456 is installed and socketeer is running

???

I will recheck ....

bye,
Christian