Operating System - HP-UX
1833883 Members
1670 Online
110063 Solutions
New Discussion

How to close HTTP connection in Java application on HPUX

 
Chen Ming_1
New Member

How to close HTTP connection in Java application on HPUX

Dear sir:

We build a system on HPUX 11i by Java SDK 1.4.1_02 version, which needs send HTTP GET requests to many 3rd-party content providers via lease line.

Today, we have this problem, because some of Content provider do not close the connection when they received the HTTP GET request, which force the opened socket connection on HPUX server be accmulated to 1000+ more, and taking high system memory. Even I bring down the process, which is Java process, the System memory is still very high (here the System memory refers to the memory taken by the OS).

So my question is:
1. Any command can close all those opened connection after we bring down the process.
2. any command can set the TCP/IP connection (for HTTP) elapse time to a certain number, such as 5 mins, any concerns on that. We are using RMI, database, HTTP on that machine.

Best regards

Chen Ming