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
  #31  
Old 03-15-2012, 02:56 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Quote:
Originally Posted by anything View Post
why is this thread marked as solved?
what is the solution?

it has happened again to me today, started happening 8 hours ago. Any file uploads above 1MB or so would fail with Error 500.
Failed to obtain or reinitialize VMemBuf. possibly running out of swap space.
Will a restart fix it?
Please send us the section of error log starting to show this issue to bug@litespeed...
Reply With Quote
  #32  
Old 01-16-2013, 08:04 AM
gnu.smtp gnu.smtp is offline
Member
 
Join Date: Apr 2012
Posts: 20
Default Is this error fixed now

I am also facing this issue now.

/dev/sda7 2.0G 437M 1.5G 24% /tmp

free -m
total used free shared buffers cached
Mem: 8104 7613 491 0 228 6268
-/+ buffers/cache: 1116 6988
Swap: 4094 1 4093


Error getting is upload files shows Crunching and Litespeed error shows "Failed to obtain or reinitialize VMemBuf. possibly running out of swap space"

If we restart the litepseed it gets fixed for a short while but reappears the same issue.

Is there any permanent fix for this.

Please consider this as a serious issue as we cannot keep restarting the lsws for each upload.
Reply With Quote
  #33  
Old 01-16-2013, 03:19 PM
anything anything is offline
Member
 
Join Date: Jun 2010
Posts: 40
could be marked as possibly-solved.

i moved the litespeed temp&swap directory to somewhere outside of /tmp and the problem has gone away.

i believed our crons watching /tmp to remove old untouched files (also aka tmpwatch) were inadvertently removing old litespeed temp files that it hadn't touched in several days. then suddenly litespeed expects the file to be there and it isnt. this also might explain why i was only seeing the error every 2-3 days.
Reply With Quote
  #34  
Old 01-16-2013, 04:01 PM
gnu.smtp gnu.smtp is offline
Member
 
Join Date: Apr 2012
Posts: 20
Litespeed Guys,

Is there any other fixes ? I have also seen issues like litespeed stops responding while runinng the cleancache script (eventhough we have not enabled cache)
Reply With Quote
  #35  
Old 01-16-2013, 07:15 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
Quote:
i moved the litespeed temp&swap directory to somewhere outside of /tmp and the problem has gone away.
thanks.

gnu.smtp,

can you follow above clue and see if the issue gone since then ?

if it's confirmed, it'll help us much to identify the issue then can work out a correct fix.

the difficulty of this issue is, it's not easily to reproduce.
Reply With Quote
  #36  
Old 01-17-2013, 02:30 AM
gnu.smtp gnu.smtp is offline
Member
 
Join Date: Apr 2012
Posts: 20
Hello,

Can you guide me how to make such a change ? Do we need to add cron for removing that also ?

Please let me know the exact steps as I do not want to cause any downtime in our shared server.
Reply With Quote
  #37  
Old 01-17-2013, 10:41 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Quote:
/dev/sda7 2.0G 437M 1.5G 24% /tmp
It is too small for uploading large files, you need to move swapping directory to another partition.

http://www.litespeedtech.com/docs/we...l/#swappingDir
Reply With Quote
  #38  
Old 01-19-2013, 05:16 AM
gnu.smtp gnu.smtp is offline
Member
 
Join Date: Apr 2012
Posts: 20
Hello,

Can you let me know the optimum value of Max I/oBuffer ?

Also Can I change the swap directory to /home/lshttpd/swap folder and what about the security side of setting like this.

On another note, our old issue when running

nobody 623 0.0 0.0 4636 1180 ? SN 07:54 0:00 /bin/sh /usr/local/lsws/admin/misc/cleancache.sh /tmp/lshttpd/swap
nobody 2694 0.0 0.0 4636 1180 ? SN 07:55 0:00 /bin/sh /usr/local/lsws/admin/misc/cleancache.sh /tmp/lshttpd/swap
root 4432 0.0 0.0 4032 724 pts/7 S+ 08:13 0:00 grep http
stackabl 4622 0.0 0.2 30404 18516 ? SN 08:03 0:00 cpanellogd - http logs for stackabl
nobody 6300 0.0 0.0 4636 1180 ? SN 08:03 0:00 /bin/sh /usr/local/lsws/admin/misc/cleancache.sh /tmp/lshttpd/swap
nobody 17075 0.0 0.0 4332 788 ? DN 08:10 0:00 find /tmp/lshttpd/swap/4 -type f -mtime +1 -delete
nobody 17110 0.0 0.0 4332 788 ? DN 08:10 0:00 find /tmp/lshttpd/swap/4 -type f -mtime +1 -delete
nobody 17122 0.0 0.0 4332 792 ? DN 08:10 0:00 find /tmp/lshttpd/swap/4 -type f -mtime +1 -delete
nobody 17127 0.0 0.0 4332 788 ? DN 08:10 0:00 find /tmp/lshttpd/swap/5 -type f -mtime +1 -delete
nobody 17153 0.0 0.0 4332 744 ? DN 08:10 0:00 find /tmp/lshttpd/swap/5 -type f -mtime +1 -delete
nobody 17159 0.0 0.0 4332 780 ? DN 08:10 0:00 find /tmp/lshttpd/swap/9 -type f -mtime +1 -delete
nobody 17210 0.0 0.0 4332 744 ? DN 08:10 0:00 find /tmp/lshttpd/swap/a -type f -mtime +1 -delete
nobody 19261 0.0 0.0 4636 1180 ? SN 07:59 0:00 /bin/sh /usr/local/lsws/admin/misc/cleancache.sh /tmp/lshttpd/swap
nobody 23399 0.0 0.0 4636 1184 ? SN 07:42 0:00 /bin/sh /usr/local/lsws/admin/misc/cleancache.sh /tmp/lshttpd/swap
nobody 31203 0.0 0.0 4636 1180 ? SN 07:54 0:00 /bin/sh /usr/local/lsws/admin/misc/cleancache.sh /tmp/lshttpd/swap
nobody 31250 0.0 0.0 4636 1176 ? SN 07:45 0:00 /bin/sh /usr/local/lsws/admin/misc/cleancache.sh /tmp/lshttpd/swap


when this runs sites gets hung and restart of litespeed do not have any effect.

Any possible solutions ? also If I change the /tmp to /home/lshttp/swap, is there any where else I need to make change s
Reply With Quote
  #39  
Old 01-19-2013, 09:36 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
>Can you let me know the optimum value of Max I/oBuffer ?
usually default value is fine, no need change except you have explicit reason.

Quote:
Also Can I change the swap directory to /home/lshttpd/swap folder and what about the security side of setting like this.
change /tmp/lshttps/swap to /home/lshttpd/swap, should not bring any security issue.

Quote:
also If I change the /tmp to /home/lshttp/swap, is there any where else I need to make changes
correction: it's not change /tmp to /home/lshttp/swap, but change /tmp/lshttps/swap to /home/lshttp/swap. only change this setting is ok.

Quote:
On another note, our old issue when running
thanks for the report. looks the script need improvement to prevent multiple
"find /tmp/lshttpd/swap/4 -type f -mtime +1 -delete" processes running at the same time.

just search our forum:
http://www.litespeedtech.com/support...ad.php?p=34155
Quote:
We have tried the same and seems to be much better.

But the question is why the original script is having issue for this server only. We have more than 10 servers running on litespeed and none of those server is having such issues.
we have discussed the same issue before. the problem server now is the same one mentioned in your post 6 months ago ?
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 04:16 AM.



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