Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-28, 20:06:38

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - josifbg

Pages: 1 2 [3] 4
31
Kloxo-MR Technical Helps / Re: Serious Problem MRatWork
« on: 2014-01-10, 06:36:08 »
If using php-fpm as 'php type', reduce client/customer amount. It's because php thread depend on how much client/customer amount. Better using 'admin' for all your domain and no other clients/customers.

If I switch to php-fpm I can`t change upload_limit_size and post_max_size per domain.

Maybe a bug? i don`t know. the changes a written in the .htaccess but simply they don`t work.

Only if php-type: mod_php_ruid2 is selected I can change the upload_limit_size and post_max_size...


32
Kloxo-MR Technical Helps / Re: Serious Problem MRatWork
« on: 2014-01-09, 14:22:41 »
Here are the results of a simple test:

Using: php54 with mod_php_ruid2

The below test is executed from separated machine!

The requested Website test.domain.com is Joomla with no plugins... only few pictures and text... nothing heavy!

Quote
ab -n 500 -c 10 http://test.domain.com:80/
This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking test.domain.com (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Finished 500 requests


Server Software:        Apache/2.2.26
Server Hostname:        test.domain.com
Server Port:            80

Document Path:          /
Document Length:        9289 bytes

Concurrency Level:      10
Time taken for tests:   44.938 seconds
Complete requests:      500
Failed requests:        476
   (Connect: 0, Receive: 0, Length: 476, Exceptions: 0)

Write errors:           0
Total transferred:      4932817 bytes
HTML transferred:       4678317 bytes
Requests per second:    11.13 [#/sec] (mean)
Time per request:       898.768 [ms] (mean)
Time per request:       89.877 [ms] (mean, across all concurrent requests)
Transfer rate:          107.20 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        2    3   2.3      3      40
Processing:   352  848 267.6    843    5822
Waiting:      337  834 267.3    831    5811
Total:        355  851 267.7    847    5824

Percentage of the requests served within a certain time (ms)
  50%    847
  66%    877
  75%    901
  80%    916
  90%   1012
  95%   1159
  98%   1264
  99%   1431
 100%   5824 (longest request)

33
Kloxo-MR Technical Helps / Re: Serious Problem MRatWork
« on: 2014-01-09, 13:53:57 »
OK...

24 hours latter update:

After couple of tests i`ve increased the Memory Limit from 128 to 256
So far so good... All sites are stable and non of them disappear up to now.

But this leads me another problem... with the above configuration the performance of the websites/apache are super slow.

The response time and the actual load of the website...

 

34
Kloxo-MR Technical Helps / Re: Serious Problem MRatWork
« on: 2014-01-09, 13:46:46 »
Please check /var/log/httpd/error_log
If all sites can't load 100% you will see some errors inside error_log.

No errors at all!

35
Kloxo-MR Technical Helps / Re: Serious Problem MRatWork
« on: 2014-01-08, 12:05:30 »
OK

After the slow opening of the sites i`ve tried:

./fix-all - no effect
./restart-all - no effect

Total restart ot the system has back to normal everything...

I`ll report back.


36
Kloxo-MR Technical Helps / Re: Serious Problem MRatWork
« on: 2014-01-08, 11:42:47 »
It's crazy set 'memory limit' until '512M'. Remember, if want '512' you must set '512M' (that mean '512 MB').

I`ve change it to 128M and now all site are opening extremely slow... maybe i have to restart the services?

37
Kloxo-MR Technical Helps / Re: Serious Problem MRatWork
« on: 2014-01-08, 11:36:16 »
Try increase 'Memory Limit' in 'Advanced Php Config' from '64M' to '128M'.

Together with it, disable plugin in your website application (like plugin in wordpress) first and then enable one-by-one.

I can increase 'Memory Limit' to 256 or even 512 if it is not a problem i don`t mind...

I will try your suggestion and will report back!

38
Kloxo-MR Technical Helps / Serious Problem MRatWork
« on: 2014-01-08, 11:14:39 »
The problem is that no matter what i do and no matter how many times i reinstall the server there is one specific problem which drives me crazy...

After 16 hours up time all the sites hosted on kloxo suddenly vanish... and by vanish i mean that they are not opening in browser.... no matter if there is some application installed on the domain or not the website is not opening.

Only Kloxo Panel is working and i can login.

I have to manually execute sh /scripts/restart-all in order to resolve the issue.

There are no error messages recorded in the logs which is like a ghost living in my server...

Despite the above mentioned problem Kloxo and all related services are working like a charm.

But I can`t restart the server every time the websites are gone and can`t open from browser....

2 weeks already every couple of days i reinstall the server with some hope that this time the problem will disapear..., but nooooo.

Here are some details you`ll probably ask for:

OS: Centos 6.5
Webserver Config:
PHP Branch: php53u
PHP Type: mod_php_ruid2

Web: Apache
DNS: Bind


cat /etc/sysctl.conf
Quote
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0

# Controls the default maxmimum size of a mesage queue
kernel.msgmnb = 65536

# Controls the maximum size of a message, in bytes
kernel.msgmax = 65536

# Controls the maximum shared segment size, in bytes
kernel.shmmax = 68719476736

# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 4294967296

### begin -- add by Kloxo-MR
fs.aio-max-nr = 1048576
fs.file-max = 1048576
vm.swappiness = 10
vm.vfs_cache_pressure = 50
vm.dirty_background_ratio = 15
vm.dirty_ratio = 5
### end -- add by Kloxo-MR



39
Kloxo-MR Technical Helps / Re: php-fpm error
« on: 2014-01-07, 15:15:10 »
I think segfault issue related to how program (let say wordpress) use php. No segfault for this forum.

Better disable all plugins in program and test one-by-one.
Thanks for your support MRatWork!

What about my Problem no.2 above?

Problem No.2

If i change the Php Type to mod_php_ruid2 everiting seams ok but few minutes latter all sites disapears... no log info, no errors ... nothing... i`am executing: /scripts/./fix-all and afterwords /scripts/./restart-all and nothings happends.... the domains are unaccessible even if they respond to DNS ping etc.

All services are working but not really....

I am not really sure if it`s related but when Php-Type: php-fpm_event is selected non of the changes for Advanced PHP Config per domain is applied.

Only when Php-Type: mod_php_ruid2 is selected the Advanced PHP Config per domain is working.

40
Kloxo-MR Technical Helps / Re: php-fpm error
« on: 2014-01-07, 14:29:12 »
Mustafa,
I report this segfaults long time ago :)

Segfault + (9)Bad file description = PHP-FPM crash (sometime on high load server)

I see the same error in /php-fpm/error.log

[07-Jan-2014 14:08:38] ERROR: unable to read what child say: Bad file descriptor (9)
[07-Jan-2014 14:08:38] ERROR: unable to read what child say: Bad file descriptor (9)
[07-Jan-2014 14:42:40] ERROR: unable to read what child say: Bad file descriptor (9)
[07-Jan-2014 14:42:40] ERROR: unable to read what child say: Bad file descriptor (9)
[07-Jan-2014 14:42:40] ERROR: unable to read what child say: Bad file descriptor (9)
[07-Jan-2014 14:42:40] ERROR: unable to read what child say: Bad file descriptor (9)

41
Kloxo-MR Technical Helps / Re: php-fpm error
« on: 2014-01-07, 14:26:57 »
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0

# Controls the default maxmimum size of a mesage queue
kernel.msgmnb = 65536

# Controls the maximum size of a message, in bytes
kernel.msgmax = 65536

# Controls the maximum shared segment size, in bytes
kernel.shmmax = 68719476736

# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 4294967296

### begin -- add by Kloxo-MR
fs.aio-max-nr = 1048576
fs.file-max = 1048576
vm.swappiness = 10
vm.vfs_cache_pressure = 50
vm.dirty_background_ratio = 15
vm.dirty_ratio = 5
### end -- add by Kloxo-MR

42
Kloxo-MR Technical Helps / Re: php-fpm error
« on: 2014-01-07, 13:59:57 »
almost 1 hour later again:

Jan  7 14:42:40 ns1 kernel: php-fpm[29307]: segfault at 211baca ip 000000000211baca sp 00007fffcf2de888 error 15


43
Kloxo-MR Technical Helps / Re: php-fpm error
« on: 2014-01-07, 13:12:29 »
I am not really sure if it`s related but when Php-Type: php-fpm_event is selected non of the changes for Advanced PHP Config per domain is applied.

Only when Php-Type: mod_php_ruid2 is selected the Advanced PHP Config per domain is working.
 

44
Kloxo-MR Technical Helps / Re: php-fpm error
« on: 2014-01-07, 12:55:56 »
Jan  7 13:53:18 ns1 yum[26051]: Installed: php-common-5.3.27-3.el6.x86_64
Jan  7 13:53:19 ns1 yum[26051]: Installed: php-pdo-5.3.27-3.el6.x86_64
Jan  7 13:53:19 ns1 yum[26051]: Installed: php-cli-5.3.27-3.el6.x86_64
Jan  7 13:53:20 ns1 yum[26051]: Installed: 1:php-pear-1.9.4-4.el6.noarch
Jan  7 13:53:21 ns1 yum[26051]: Installed: php-pecl-geoip-1.0.8-3.el6.x86_64
Jan  7 13:53:21 ns1 yum[26051]: Installed: php-pecl-imagick-2.2.2-4.el6.x86_64
Jan  7 13:53:22 ns1 yum[26051]: Installed: php-5.3.27-3.el6.x86_64
Jan  7 13:53:22 ns1 yum[26051]: Installed: php-pgsql-5.3.27-3.el6.x86_64
Jan  7 13:53:22 ns1 yum[26051]: Installed: php-mysql-5.3.27-3.el6.x86_64
Jan  7 13:53:22 ns1 yum[26051]: Installed: php-mcrypt-5.3.27-3.el6.x86_64
Jan  7 13:53:22 ns1 yum[26051]: Installed: php-fpm-5.3.27-3.el6.x86_64
Jan  7 13:53:23 ns1 yum[26051]: Installed: php-mbstring-5.3.27-3.el6.x86_64
Jan  7 13:53:23 ns1 yum[26051]: Installed: php-bcmath-5.3.27-3.el6.x86_64
Jan  7 13:53:23 ns1 yum[26051]: Installed: php-xml-5.3.27-3.el6.x86_64
Jan  7 13:53:23 ns1 yum[26051]: Installed: php-gd-5.3.27-3.el6.x86_64
Jan  7 13:53:23 ns1 yum[26051]: Installed: php-process-5.3.27-3.el6.x86_64
Jan  7 13:53:23 ns1 yum[26051]: Erased: php54
Jan  7 13:53:23 ns1 yum[26051]: Erased: php54-mbstring
Jan  7 13:53:23 ns1 yum[26051]: Erased: php54-process
Jan  7 13:53:24 ns1 yum[26051]: Erased: php54-pgsql
Jan  7 13:53:24 ns1 yum[26051]: Erased: php54-gd
Jan  7 13:53:24 ns1 yum[26051]: Erased: php54-xml
Jan  7 13:53:25 ns1 kernel: php-fpm[25752] general protection ip:68cf96 sp:7fff268bcba8 error:0 in php-fpm (deleted)[400000+34e000]
Jan  7 13:53:25 ns1 yum[26051]: Erased: php54-fpm
Jan  7 13:53:25 ns1 yum[26051]: Erased: php54-mcrypt
Jan  7 13:53:25 ns1 yum[26051]: Erased: php54-mysql
Jan  7 13:53:25 ns1 yum[26051]: Erased: php54-pdo
Jan  7 13:53:25 ns1 yum[26051]: Erased: php54-bcmath
Jan  7 13:53:25 ns1 yum[26051]: Erased: php54-pecl-imagick
Jan  7 13:53:25 ns1 yum[26051]: Erased: php54-pecl-geoip
Jan  7 13:53:26 ns1 yum[26051]: Erased: php54-pear
Jan  7 13:53:26 ns1 yum[26051]: Erased: php54-cli
Jan  7 13:53:26 ns1 yum[26051]: Erased: php54-common
Jan  7 13:54:37 ns1 kernel: php-fpm[26207] general protection ip:63c826 sp:7fffd5caf2e8 error:0 in php-fpm[400000+2de000]

45
Kloxo-MR Technical Helps / Re: php-fpm error
« on: 2014-01-07, 12:49:55 »
Jan  7 13:46:17 ns1 yum[22559]: Installed: php54-common-5.4.23-3.ius.el6.x86_64
Jan  7 13:46:17 ns1 yum[22559]: Installed: php54-pdo-5.4.23-3.ius.el6.x86_64
Jan  7 13:46:18 ns1 yum[22559]: Installed: php54-cli-5.4.23-3.ius.el6.x86_64
Jan  7 13:46:19 ns1 yum[22559]: Installed: 1:php54-pear-1.9.4-2.ius.el6.noarch
Jan  7 13:46:19 ns1 yum[22559]: Installed: php54-pecl-geoip-1.0.8-3.ius.el6.x86_64
Jan  7 13:46:20 ns1 yum[22559]: Installed: php54-pecl-imagick-3.1.2-1.ius.el6.x86_64
Jan  7 13:46:21 ns1 yum[22559]: Installed: php54-5.4.23-3.ius.el6.x86_64
Jan  7 13:46:21 ns1 yum[22559]: Installed: php54-mysql-5.4.23-3.ius.el6.x86_64
Jan  7 13:46:21 ns1 yum[22559]: Installed: php54-pgsql-5.4.23-3.ius.el6.x86_64
Jan  7 13:46:21 ns1 yum[22559]: Installed: php54-bcmath-5.4.23-3.ius.el6.x86_64
Jan  7 13:46:21 ns1 yum[22559]: Installed: php54-mcrypt-5.4.23-3.ius.el6.x86_64
Jan  7 13:46:22 ns1 yum[22559]: Installed: php54-fpm-5.4.23-3.ius.el6.x86_64
Jan  7 13:46:22 ns1 yum[22559]: Installed: php54-xml-5.4.23-3.ius.el6.x86_64
Jan  7 13:46:22 ns1 yum[22559]: Installed: php54-gd-5.4.23-3.ius.el6.x86_64
Jan  7 13:46:22 ns1 yum[22559]: Installed: php54-process-5.4.23-3.ius.el6.x86_64
Jan  7 13:46:23 ns1 yum[22559]: Installed: php54-mbstring-5.4.23-3.ius.el6.x86_64
Jan  7 13:46:23 ns1 yum[22559]: Erased: php53u-pgsql
Jan  7 13:46:23 ns1 yum[22559]: Erased: php53u-pecl-geoip
Jan  7 13:46:23 ns1 yum[22559]: Erased: php53u-mysql
Jan  7 13:46:23 ns1 yum[22559]: Erased: php53u-pecl-imagick
Jan  7 13:46:23 ns1 yum[22559]: Erased: php53u-pear
Jan  7 13:46:24 ns1 yum[22559]: Erased: php53u-pdo
Jan  7 13:46:24 ns1 yum[22559]: Erased: php53u-mbstring
Jan  7 13:46:24 ns1 yum[22559]: Erased: php53u-xml
Jan  7 13:46:24 ns1 yum[22559]: Erased: php53u-mcrypt
Jan  7 13:46:24 ns1 kernel: php-fpm[20035]: segfault at 41 ip 0000000000000041 sp 00007fff0f8beeb8 error 14 in php-fpm (deleted)[400000+3a5000]
Jan  7 13:46:24 ns1 yum[22559]: Erased: php53u-fpm
Jan  7 13:46:25 ns1 yum[22559]: Erased: php53u
Jan  7 13:46:25 ns1 yum[22559]: Erased: php53u-cli
Jan  7 13:46:25 ns1 yum[22559]: Erased: php53u-gd
Jan  7 13:46:25 ns1 yum[22559]: Erased: php53u-bcmath
Jan  7 13:46:25 ns1 yum[22559]: Erased: php53u-common
Jan  7 13:48:36 ns1 kernel: php-fpm[23733] general protection ip:68cf96 sp:7fff239f68a8 error:0 in php-fpm[400000+34e000]

Pages: 1 2 [3] 4

MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.068 seconds with 20 queries.

web stats analysis