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

Go Back   LiteSpeed Support Forums > External Applications > PHP > MySQL client ran out of memory

Reply
 
Thread Tools Display Modes
  #1  
Old 07-10-2006, 10:52 AM
amcd amcd is offline
Member
 
Join Date: Jul 2006
Posts: 17
Default MySQL client ran out of memory

i successfully install lsws on my the webserver for my forums and i must say it looks faster already, without any tuning

but there is one problem which i just cant figure out

when the 'user promotions' scheduled task runs, it generates an error

Quote:
User Promotions

Warning: mysql_query(): Unable to save result set in /includes/class_core.php on line 373

There seems to have been a problem with the XBoard.US database.
Please try again by clicking the Refresh button in your web browser.

An E-Mail has been dispatched to our Technical Staff, whom you can also contact if the problem persists.

We apologise for any inconvenience.



Database error in vBulletin 3.5.0:

Invalid SQL:

SELECT user.joindate, user.userid, user.membergroupids, user.posts, user.reputation,
user.usergroupid, user.displaygroupid, user.customtitle, user.username,
userpromotion.joinusergroupid, userpromotion.reputation AS jumpreputation, userpromotion.posts AS jumpposts,
userpromotion.date AS jumpdate, userpromotion.type, userpromotion.strategy,
usergroup.title, usergroup.usertitle AS ug_usertitle,
usertextfield.rank
FROM user AS user
LEFT JOIN userpromotion AS userpromotion ON (user.usergroupid = userpromotion.usergroupid)
LEFT JOIN usergroup AS usergroup ON (userpromotion.joinusergroupid = usergroup.usergroupid)
LEFT JOIN usertextfield AS usertextfield ON (usertextfield.userid = user.userid);

MySQL Error : MySQL client ran out of memory
Error Number : 2008
Date : Monday, July 10th 2006 @ 10:19:35 PM
Script : http://www.xboard.us/bbb/xxx/cronadm...ncron&cronid=3
Referrer : http://www.xboard.us/bbb/xxx/cronadmin.php?do=modify
IP Address : xxx
Username : xxx
Classname : vb_database

php is running with lsapi. the default installation had mysql 3.xx which was not good enough so i compiled my own php as per instructions in the wiki

php ver 4.4.2
mysql is running on a separate server - ver 4.1.16-standard
client as per phpinfo - Client API version 4.1.19

if any other information is needed please ask

edit:
P.S.: everytime this error is generated, one line is added to /usr/local/lsws/logs/stderr.log - 'Out of memory (Needed 293404 bytes)' - the number of bytes fluctuates between 290000 and 400000

Last edited by amcd; 07-10-2006 at 10:56 AM..
Reply With Quote
  #2  
Old 07-10-2006, 12:07 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Looks like you need to increase the memory limit at the bottom of your phpLsapi configuration.
Reply With Quote
  #3  
Old 07-10-2006, 12:41 PM
amcd amcd is offline
Member
 
Join Date: Jul 2006
Posts: 17
i already changed it from the default

Memory Soft Limit - 120M
Memory Soft Limit - 150M
Reply With Quote
  #4  
Old 07-10-2006, 02:01 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
There is a bug which ignore the per application limits, will be fixed in next release. In the mean time, you can change the global limit under server->'security'->'CGI resource control'.
Reply With Quote
  #5  
Old 07-10-2006, 10:33 PM
amcd amcd is offline
Member
 
Join Date: Jul 2006
Posts: 17
thank you, this has solved the problem.

the default was 60M and 70M. i first changed it to 80M and 100M and it did not work. then i changed it to same as lsphp setting and it is now working at 120M and 150M

but is that not too high? what would be an optimum level?

is there any guide to tweaking/tuning lsws for best performance and optimum resource usage? i find that the help in the admin panel is helpful, but not very detailed, and leaves a less educated person like me craving for more
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rails MySQL disconnects tdinkins Bug Reports 4 06-13-2007 10:56 AM
litespeed plus rails memory usage Shelby Ruby/Rails 1 02-08-2007 05:53 PM
Expected memory usage? subBlue Install/Configuration 4 10-20-2006 02:39 PM
Lot of free memory and less cache IO Bug Reports 2 11-03-2005 05:30 PM
PostNuke .750 MySQL and FreeBSD 5.3 joe Install/Configuration 2 03-30-2005 03:17 PM


All times are GMT -7. The time now is 09:02 AM.



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