CLOSE_WAIT problem in solaris server

Hi,

Occasionally I am getting the port state in CLOSE_WAIT for long time in the solaris server. I am not sure is it application problem or not. Because we are using port 9009 for Tomcat process in our web application, some time when I start the application, the port 9009 is in CLOSE_WAIT state. After reboot the server only I can able to start the application. This is mostly observed in sol 5.10 server only.

Can anyone suggest me, how to avoid this problem or my application cause this issue ?

I know it can be worth tuning the TCP/IP stack by reducing some of the timeout values such as is mentioned at:
Solaris - Tuning Your TCP/IP Stack
, the following:
CLOSE_WAIT Connections - Tuning Solaris Diogo Cortiz da Silva also looks useful.

/usr/sbin/ndd -get /dev/tcp tcp_close_wait_interval