PauloTroguilho / php-sip

Automatically exported from code.google.com/p/php-sip
0 stars 0 forks source link

Lock file causing response times to grow until httpd restarted #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create SIP sensors for an MRTG system & use this SIP application
2. Graph response times
3. Watch response times climb

What is the expected output? What do you see instead?
Expected output is that the response times stay low.  Instead the response 
times creep up slowly until you restart apache.

What version of the product are you using? On what operating system?
v3, Centos 6.5

Please provide any additional information below.

The problem was that the system was using a single lock file, which grew to 
large sizes and eventually caused slow downs.

I was able to solve this problem by changing:
$this->lock_file = '/tmp/phpSIPNew.lock';
to
$this->lock_file = '/tmp/phpSIPNew'.time().'.lock';

Thanks!

Original issue reported on code.google.com by matj1...@gmail.com on 20 Apr 2015 at 7:41