php和oracle问题!
skyxu 2000-11-02 12:19:00 遇到一个很奇怪的问题,百思不得起解,我现在用linux+apache+php做web server,
用oracle+solaris为database,现在工作一切正常,只是我发现一个很奇怪的情况,
就是用netstat看,会有很多连向数据库的连接是TIME_WAIT,要到多60秒后,大概
超时连接自动停止,虽然不影响访问,但是如果大访问的话连接数太多的话那会造成
很多连接,这样linux就会边得无法连接!
而且出现这种情况的时候用netstat -e -p,会看出这些连接没有任何程序与他相关,
而且是由root来执行,而不是由nobody这个帐号来执行。
不知道是否有大虾清楚?!!
高分请教!!![root@linux2 /root]# netstat -e -p
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
tcp 0 192 linux2:www 192.168.1.187:4782 ESTABLISHED nobody 3683849 3832/httpd
tcp 0 0 linux2:2415 sun:38862 TIME_WAIT root 0 -
tcp 0 7352 linux2:www 192.168.1.187:4781 ESTABLISHED nobody 3683840 3834/httpd
tcp 0 0 linux2:2413 sun:38863 TIME_WAIT root 0 -
tcp 0 0 linux2:2412 sun:1521 TIME_WAIT root 0 -
tcp 0 0 linux2:2411 sun:38854 TIME_WAIT root 0 -
tcp 0 0 linux2:2409 sun:38855 TIME_WAIT root 0 -
tcp 0 0 linux2:2407 sun:38856 TIME_WAIT root 0 -
tcp 0 0 linux2:2405 sun:38857 TIME_WAIT root 0 -
tcp 0 0 linux2:2403 sun:38858 TIME_WAIT root 0 -
tcp 0 0 linux2:cvspserver sun:38859 TIME_WAIT root 0 -
tcp 0 0 linux2:2399 sun:38861 TIME_WAIT root 0 -
tcp 0 0 linux2:2397 sun:38862 TIME_WAIT root 0 -
tcp 0 0 linux2:2395 sun:38863 TIME_WAIT root 0 -
tcp 0 0 linux2:2393 sun:38855 TIME_WAIT root 0 -
tcp 0 0 linux2:2391 sun:38856 TIME_WAIT root 0 -
tcp 0 0 linux2:2387 sun:38858 TIME_WAIT root 0 -
tcp 0 0 linux2:2385 sun:38859 TIME_WAIT root 0 -
tcp 0 0 linux2:2383 sun:38863 TIME_WAIT root 0 -
tcp 0 0 linux2:2381 sun:38857 TIME_WAIT root 0 -
tcp 0 0 linux2:2379 sun:38859 TIME_WAIT root 0 -
tcp 0 0 linux2:2377 sun:38863 TIME_WAIT root 0 -
tcp 0 0 linux2:2375 sun:38857 TIME_WAIT root 0 -
tcp 0 0 linux2:2374 sun:1521 TIME_WAIT root 0 -