Custom Query (302 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (31 - 33 of 302)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Ticket Resolution Summary Owner Reporter
#325 invalid Windows / mod_fastcgi / Xcache moo starams5
Description

Hi Moo,

I need your help once again. I noticed apache was starting to crash on a regular basis. I had to implement new features (which should have been done sooner) to correct the problem.

As I'm sure you alraedy know, apache has memory issues running on windows, memory leaks, etc; I was able to correct the issue by setting the ThreadStackSize? to 8388608 and using the MaxRequestsPerChild? directive.

Most importantly, I enabled mod_fastcgi-2.4.6-AP22.dll. mod_fastcgi is working as it should be, and the server is now stable. However, I check the 3.0.3 Cacher and found the following:

Total:
Slots: 128.00 K 	
Size: 60.00 M 	
Available: 58.89 M

Specs:

Windows Server 2008 R2
Duel Quad Core Xeons
16Gb Memory

Apache 2.2.21
MySQL 5.5.16
PHP Version 5.4.16

Xcache Settings:

;; this is an example, it won't work unless properly configured into php.ini
[xcache-common]
;; non-Windows example:
;;extension = xcache.so
;; Windows example:
extension = php_xcache.dll

[xcache.admin]
xcache.admin.enable_auth = Off
xcache.admin.user = "xxxxx"
; set xcache.admin.pass = md5($your_password)
; login use $your_password
xcache.admin.pass = "xxxxxx"

[xcache]
; ini only settings, all the values here is default unless explained

; select low level shm implemenation
xcache.shm_scheme =        "mmap"
; to disable: xcache.size=0
; to enable : xcache.size=64M etc (any size > 0) and your system mmap allows
xcache.size  =               60M
; set to cpu count (cat /proc/cpuinfo |grep -c processor)
xcache.count =                 16
; just a hash hints, you can always store count(items) > slots
xcache.slots =                8K
; ttl of the cache item, 0=forever
xcache.ttl   =                 0
; interval of gc scanning expired items, 0=no scan, other values is in seconds
xcache.gc_interval =           0

; same as aboves but for variable cache
xcache.var_size  =            4M
xcache.var_count =             16
xcache.var_slots =            8K
; default value for $ttl parameter of xcache_*() functions
xcache.var_ttl   =             0
; hard limit ttl that cannot be exceed by xcache_*() functions. 0=unlimited
xcache.var_maxttl   =          0
xcache.var_gc_interval =     300

; mode:0, const string specified by xcache.var_namespace
; mode:1, $_SERVER[xcache.var_namespace]
; mode:2, uid or gid (specified by xcache.var_namespace)
xcache.var_namespace_mode =    0
xcache.var_namespace =        ""

; N/A for /dev/zero
xcache.readonly_protection = Off
; for *nix, xcache.mmap_path is a file path, not directory. (auto create/overwrite)
; Use something like "/tmp/xcache" instead of "/dev/*" if you want to turn on ReadonlyProtection
; different process group of php won't share the same /tmp/xcache
; for win32, xcache.mmap_path=anonymous map name, not file path
xcache.mmap_path =    "/dev/zero"


; Useful when XCache crash. leave it blank(disabled) or "/tmp/phpcore/" (writable by php)
xcache.coredump_directory =   ""
; Windows only. leave it as 0 (default) until you're told by XCache dev
xcache.coredump_type =         0

; disable cache after crash
xcache.disable_on_crash =    Off

; enable experimental documented features for each release if available
xcache.experimental =        Off

; per request settings. can ini_set, .htaccess etc
xcache.cacher =               On
xcache.stat   =               On
xcache.optimizer =           Off

[xcache.coverager]
; enabling this feature will impact performance
; enabled only if xcache.coverager == On && xcache.coveragedump_directory == "non-empty-value"

; per request settings. can ini_set, .htaccess etc
; enable coverage data collecting and xcache_coverager_start/stop/get/clean() functions
xcache.coverager =           Off
xcache.coverager_autostart =  On

; set in php ini file only
; make sure it's readable (open_basedir is checked) by coverage viewer script
xcache.coveragedump_directory = ""

mod_fastcgi settings:

# Load mod_fcgid
LoadModule fastcgi_module modules/mod_fastcgi.dll

<IfModule fcgid_module>
AddHandler fcgid-script .fcgi .php

# Where to look for the php.ini file?
FcgidInitialEnv PHPRC        "c:/xampp/php"

# Set PHP_FCGI_MAX_REQUESTS to greater than or equal to FcgidMaxRequestsPerProcess
# to prevent php-cgi process from exiting before all requests completed
FcgidInitialEnv PHP_FCGI_MAX_REQUESTS      1000

# Maximum requests a process should handle before it is terminated
FcgidMaxRequestsPerProcess       1000

# Number of seconds of idle time before a php-cgi process is terminated
FcgidIOTimeout             120
FcgidIdleTimeout                120
FcgidOutputBufferSize 128
FcgidIOTimeout 40
ProcessLifeTime 240
FcgidMaxProcesses             50

#Path to php-cgi
FcgidWrapper "c:/xampp/php/php-cgi.exe" .php
FcgidInitialEnv PATH "c:/xampp/php;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;"
FcgidInitialEnv SystemRoot "C:\\Windows"
FcgidInitialEnv SystemDrive "C:"
FcgidInitialEnv TEMP "C:\\WINDOWS\\TEMP"
FcgidInitialEnv TMP "C:\\WINDOWS\\TEMP"
FcgidInitialEnv windir "C:\\WINDOWS"

# Max request length
#FcgidMaxRequestLen 5242880
FcgidMaxRequestLen 1048576000
</IfModule>

Also tried changing the paths to, same results:

#Path to php-cgi
FcgidWrapper "c:/xampp/php/php-cgi.exe" .php
FcgidInitialEnv PATH "c:/xampp/php;c:\windows\system32;c:\windows;c:\windows\system32\wbem;"
FcgidInitialEnv SystemRoot "c:\windows"
FcgidInitialEnv SystemDrive "c:"
FcgidInitialEnv TEMP "c:\windows\temp"
FcgidInitialEnv TMP "c:\windows\temp"
FcgidInitialEnv windir "c:\windows"

I did find this under 3.0.3 - Diagnosis:

SAPI Compatibility 	Error 	CGI is not supported 	Use FastCGI or FPM instead

The Xcache usage seems to be extremely low since enabling mod_fastcgi. Is this normal ? If not, please advise. Thank you.

#265 duplicate php5-fpm segfault while xcache_get a key with object in data moo sskaje
Description

Env:

linux CentOS 5.5 x64/Ubuntu 11.10 x86;
nginx;
php5-fpm 5.3.3/5.3.6;
xcache 1.3.1/1.3.2;

Code below:

<?php

class a{
    public $a = 1;
}
$a = array(
    'a' => 1,
);

if (!($b = xcache_get('key'))) {
    $b = array(
#        'b' =>  $a,
        'b' =>  new a,
    );

    xcache_set('key', $b, 2);
}

var_dump($b);

Do

curl http://172.16.9.252:8080/1.php

twice in 1 second, Nginx would say a 502 at the second time.

Check out the fpm log

WARNING: [pool www] child 1380 exited on signal 11 (SIGSEGV - core dumped)

Use

    $b = array(
        'b' =>  $a,
#        'b' =>  new a,
    );

code above works well. Or, comment the var_dump line, no coredump reported.

BackTrace?:

(gdb) bt
#0  0x0833d35b in zend_std_get_properties ()
#1  0x0827b99c in php_var_dump ()
#2  0x0827bbdd in ?? ()
#3  0x08328236 in zend_hash_apply_with_arguments ()
#4  0x0827b8ed in php_var_dump ()
#5  0x0079a85c in zif_xdebug_var_dump (ht=1, return_value=0x99d178c, return_value_ptr=0x0, this_ptr=0x0, return_value_used=0)
    at /build/buildd/xdebug-2.1.0/build-php5/xdebug.c:1444
#6  0x083b2e75 in execute_internal ()
#7  0x0079a474 in xdebug_execute_internal (current_execute_data=0x9a096e4, return_value_used=0) at /build/buildd/xdebug-2.1.0/build-php5/xdebug.c:1339
#8  0x08397505 in ?? ()
#9  0x0834264e in execute ()
#10 0x0079a123 in xdebug_execute (op_array=0x99d116c) at /build/buildd/xdebug-2.1.0/build-php5/xdebug.c:1272
#11 0x0831b3a9 in zend_execute_scripts ()
#12 0x082c22de in php_execute_script ()
#13 0x0806a148 in ?? ()
#14 0x00b68113 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
#15 0x0806ad99 in _start ()
(gdb) source /tmp/php5-5.3.6/.gdbinit
Redefine command "____executor_globals"? (y or n) [answered Y; input not from terminal]
Redefine command "print_cvs"? (y or n) [answered Y; input not from terminal]
Redefine command "dump_bt"? (y or n) [answered Y; input not from terminal]
Redefine command "printzv"? (y or n) [answered Y; input not from terminal]
Redefine command "____printzv_contents"? (y or n) [answered Y; input not from terminal]
Redefine command "____printzv"? (y or n) [answered Y; input not from terminal]
Redefine command "____print_const_table"? (y or n) [answered Y; input not from terminal]
Redefine command "print_const_table"? (y or n) [answered Y; input not from terminal]
Redefine command "____print_ht"? (y or n) [answered Y; input not from terminal]
Redefine command "print_ht"? (y or n) [answered Y; input not from terminal]
Redefine command "print_htptr"? (y or n) [answered Y; input not from terminal]
Redefine command "print_htstr"? (y or n) [answered Y; input not from terminal]
Redefine command "____print_ft"? (y or n) [answered Y; input not from terminal]
Redefine command "print_ft"? (y or n) [answered Y; input not from terminal]
Redefine command "____print_inh_class"? (y or n) [answered Y; input not from terminal]
Redefine command "____print_inh_iface"? (y or n) [answered Y; input not from terminal]
Redefine command "print_inh"? (y or n) [answered Y; input not from terminal]
Redefine command "print_pi"? (y or n) [answered Y; input not from terminal]
Redefine command "____print_str"? (y or n) [answered Y; input not from terminal]
Redefine command "printzn"? (y or n) [answered Y; input not from terminal]
Redefine command "printzops"? (y or n) [answered Y; input not from terminal]
Redefine command "zbacktrace"? (y or n) [answered Y; input not from terminal]
Redefine command "zmemcheck"? (y or n) [answered Y; input not from terminal]
(gdb) dump_bt
Missing argument 0 in user function.
(gdb)

Is this backtrace correct?

#296 fixed Multiple instances of the same software causes PHP "cannot redeclare class" errors when xcache enabled dschnepper specky_rum
Description

PHP 5.4.3 Apache 2.2.22 64bit. Win 2008 64bit xcache 2.0.1

We have several instance of the Drupal CMS installed on our server which means several copies of the same files and file structure, just in different base directories. We do this so we can break a development version and not affect live, however, they run through one Apache instance and therefore one PHP and xcache instance.

It appears that when xcache is enabled we get frequent but intermittent and apparently fairly random "cannot redeclare class" errors in the PHP error log. These are fatal errors so the page completely fails when this happens. Disabling xcache completely eliminates the problem.

Since these errors are usually caused by either loading the same file twice (include instead of include_once) or by loading two files which have the same class declared in them I wonder if xcache is not using the entire filepath to identify cached files? After all, we have several instances of the same file, each of which has the same size etc.

Evidence for this comes from the error stack which shows the source of the error itself from instance A where all the other entries in the stack are in instance B. This should never happen and as stated, when xcache is disabled, it doesn't.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Note: See TracQuery for help on using queries.