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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Pre-sale questions

Reply
 
Thread Tools Display Modes
  #51  
Old 12-15-2008, 06:46 AM
[QT]bender [QT]bender is offline
Member
 
Join Date: May 2008
Posts: 16
Hi guys. I think I need same patch too. We are having application that require memory limit higher than 256 MB and I have memory_limit set to 512, but scripts stop working at 256 MB of memory. I have used the following script to test this out:

PHP Code:
<?
$begin 
getmicrotime();

error_reporting(E_ALL);
$mem_lim=ini_get("memory_limit");
$num_iterations=$mem_lim-1;
// increase memory limit
#ini_set("memory_limit", "256M");
ini_set("max_execution_time""60");
echo 
"memory limit set to $mem_lim<br>";
echo 
"max_execution_time set to " ini_get("max_execution_time") . "<br>";
echo 
"Building very long string ... <br>";
flush();
$array = array();
for (
$i 1$i <= $num_iterations$i++) {
echo 
"Adding 1M data ... ";
add($array);
echo 
"[OK] Total: $i Mb<br>";
}
#echo "<br>[OK] Total: $i Mb<br>";
$end getmicrotime();
echo 
"Execution time: "; echo $end $begin;

function 
getmicrotime() // {{{
{
list(
$usec$sec) = explode(" ",microtime());
return ((float)
$usec + (float)$sec);
}


function 
add(&$array)
{
$array[] = $str str_repeat("*"1024*1024);
return 
$array;
}
?>
Look forward to hearing from you.
Reply With Quote
  #52  
Old 12-15-2008, 07:38 AM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
Just download 3.3.23 version

* Fixed a bug that may cause lshttpd crash when access certain page via userdir format URL.
* Fixed a bug that cause fixed 256MB memory limit on non-suEXEC lsphp processes when used with cPanel
* Fixed a bug in RailsRunner.rb that causes compatibility problem with Rails 2.2.1
* Fixed a bug in virtual host template when referencing $VH_DOMAIN.
Reply With Quote
  #53  
Old 12-16-2008, 01:32 AM
[QT]bender [QT]bender is offline
Member
 
Join Date: May 2008
Posts: 16
Thank you for your quick response and fix, but unfortunately fix does not work for us. We have upgraded LSWS on four servers and have same issue. To clarify - we have not usign WHM/cPanel, we are using Plesk on our servers.

The result is:

Code:
Adding 1M data ... [OK] Total: 152 Mb
Adding 1M data ... [OK] Total: 153 Mb
Adding 1M data ... 
Fatal error: Out of memory (allocated 200802304) (tried to allocate 1048577 bytes) in /var/www/vhosts/..../httpdocs/2.php on line 32
Hope this will be resolved too and keep up the good work.
Reply With Quote
  #54  
Old 12-16-2008, 09:22 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
You can use the following script to dump the system resource limit for PHP process

Code:
<?php
$limits = posix_getrlimit();

print_r($limits);
?>
Reply With Quote
  #55  
Old 12-22-2008, 09:41 AM
LiteSpeeder LiteSpeeder is offline
Senior Member
 
Join Date: Nov 2008
Posts: 65
Hello again,

I've been running LiteSpeed 3.3.23 for a while and i'm pretty happy with it. I'm curious about one new feature of LiteSpeed 4.0:
Quote:
squid like disk cache (almost done, will be availabe in Beta1 release)
How will it work? I tried to install and configure squid in the past but never managed it to work. I've a very busy vBulletin forum and lots of gif, flash files embedded in non-vbulletin pages. Do you suggest me to switch to LiteSpeed 4.0b3 and enable the caching? or should i wait for the stable version of lsws 4?
Reply With Quote
  #56  
Old 12-22-2008, 04:08 PM
jayjaybaby jayjaybaby is offline
Member
 
Join Date: Aug 2008
Posts: 32
I'm interested in how this squid like caching works aswell.

On another note though, I dont think the cache would work effectively for dynamic content so if you have a forum I dont think it would be worth switching an unstable beta version (especially if its a busy/popular forum), I would wait for a stable release of lsws 4
Reply With Quote
  #57  
Old 12-23-2008, 03:11 AM
LiteSpeeder LiteSpeeder is offline
Senior Member
 
Join Date: Nov 2008
Posts: 65
Quote:
Originally Posted by jayjaybaby View Post
I'm interested in how this squid like caching works aswell.

On another note though, I dont think the cache would work effectively for dynamic content so if you have a forum I dont think it would be worth switching an unstable beta version (especially if its a busy/popular forum), I would wait for a stable release of lsws 4
Yes, it's better to wait for a stable version. Thanks.
Reply With Quote
  #58  
Old 01-12-2009, 10:23 PM
LiteSpeeder LiteSpeeder is offline
Senior Member
 
Join Date: Nov 2008
Posts: 65
Quote:
5-) I can easily see 404 file not found error messages in apache's error log at cpanel. I think lsws' logging system is a little more complicated. How can i only display 404 file not found messages and fix the broken images, links etc at lsws?
Quote:
We do not log all 404 file in the error log due to Ruby On Rail support. Right now, use a log analyzer or just scan access log should work.
Can you give more information about this, please? I really would like to see a page which lists "File not found" errors.
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 12:06 PM.



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