LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > [not solved] Failed to obtain or reinitialize VMemBuf

Reply
 
Thread Tools Display Modes
  #1  
Old 09-19-2011, 07:48 PM
anything anything is offline
Member
 
Join Date: Jun 2010
Posts: 40
Default [not solved] Failed to obtain or reinitialize VMemBuf

titile: Failed to obtain or reinitialize VMemBuf. possibly running out of swap space.

have been getting these errors on file uploads to litespeed webserver 4.1.4.

Quote:
Failed to obtain or reinitialize VMemBuf. possibly running out of swap space.
its happened three times so far, several days between incidents. haven't been able to work out what causes it.
once it starts happening it seems to happen to everyone if the upload is above a certain size (i haven't worked out what size exactly).

restarting litespeed solves the problem.

/tmp has plenty of space
and /tmp/lshttpd's permissions appear to be fine

Last edited by NiteWave; 03-15-2012 at 01:29 AM..
Reply With Quote
  #2  
Old 09-19-2011, 07:59 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
please refer:
http://www.litespeedtech.com/support...ead.php?t=5284
see if /tmp/lshttpd/swap related?
Reply With Quote
  #3  
Old 09-19-2011, 08:07 PM
anything anything is offline
Member
 
Join Date: Jun 2010
Posts: 40
i found that last week when looking into the first occurrence but it didnt seem to help
/tmp/lshttpd/swap's permissions are ok. owned by lsws, the same user as litespeed is running as.

there are no other errors in any log files at the same time of each error.
the upload is not even attempted by the browser, a connection reset error is seen in the browser instantly.

as restarting lsws fixes the bug it also seems to suggest its not a file permission error.
Reply With Quote
  #4  
Old 09-20-2011, 04:12 AM
anything anything is offline
Member
 
Join Date: Jun 2010
Posts: 40
the problem has happened again.
6 hours of errors over night preventing all file uploads to our sites.

i've rolled back to 4.1.3
Reply With Quote
  #5  
Old 09-21-2011, 12:11 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
just now I experienced same issue
Quote:
2011-09-21 06:41:47.081 [ERROR] [x.x.x.x:4696-0#pkg] Failed to obtain or reinitialize VMemBuf. possibly running out of swap space.
it's 4.0.20. lsphp 5.1.2 with Server API : LiteSpeed 4.10

so it's not likely an issue between 4.1.3 and 4.1.4

I did a change in php.ini:
upload_tmp_dir = /tmp
(it's not set before.) and restarted lsws.

my test shows upload 1M file was ok, but failed for a 1.8M file.

maybe restart lsws resolved the issue as you observed.
just put more info here.
Reply With Quote
  #6  
Old 09-21-2011, 12:37 AM
anything anything is offline
Member
 
Join Date: Jun 2010
Posts: 40
upload_tmp_dir is not set in my php.ini either. sys_get_temp_dir() returns /tmp
should i set it anyway?

/tmp has 4.2gig free. according to graphs it got as low as 3.9gig yesterday.

restarting lsws means that the problem goes away for some time. seems to come back on its own for no reason.

for example, I just uploaded a 10mb file with no problem. while it was uploading I could see /tmp/phpnMUhZ6 getting filled.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:18 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.