PDA

View Full Version : Solved Translator consuming too much CPU and not exiting properly



Simon Lloyd
13-12-10, 07:42
Hi All, i have moved to a dedicated setup as i was haing issues on my 1gb vps, but i find im still having issues wwhich are being caused by the translator, it is constantly consuming more than 30% of cpu for EVERY translation, also when the translation has taken place, been accesses or whatever the translator script does not exit properly, it's missing something so the server always comes up with [PHP]<defunct>, it is NOT a server issue as my server, drivers and software are brand new out of the box, if it's any use to you here's a trace of one of the translator processes:
Process 6466 attached - interrupt to quit
clock_gettime(CLOCK_MONOTONIC, {78414, 549898071}) = 0
poll([{fd=20, events=POLLIN|POLLPRI}], 1, 648) = 1 ([{fd=20, revents=POLLIN}])
poll([{fd=20, events=POLLIN|POLLPRI}], 1, 0) = 1 ([{fd=20, revents=POLLIN}])
recvfrom(20, "HTTP/1.1 200 OK\r\nCache-Control: "..., 16384, 0, NULL, NULL) = 541
clock_gettime(CLOCK_MONOTONIC, {78414, 723610071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78414, 723736071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78414, 723815071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78414, 723897071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78414, 723981071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78414, 724077071}) = 0
time([1292222225]) = 1292222225
close(20) = 0
clock_gettime(CLOCK_MONOTONIC, {78414, 724347071}) = 0
poll([{fd=19, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(19, "\375\0\0\0\3SELECT cache.originaltext a"..., 257) = 257
read(19, "\1\0\0\1\2k\0\0\2\3def\20thecodec_CCForum\5c"..., 16384) = 241
poll([{fd=19, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(19, "\347\0\0\0\3SELECT cache.originaltext a"..., 235) = 235
read(19, "\1\0\0\1\2k\0\0\2\3def\20thecodec_CCForum\5c"..., 16384) = 9268
poll([{fd=19, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(19, "\364\0\0\0\3SELECT cache.originaltext a"..., 248) = 248
read(19, "\1\0\0\1\2k\0\0\2\3def\20thecodec_CCForum\5c"..., 16384) = 984
poll([{fd=19, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(19, "\32\1\0\0\3SELECT cache.originaltext a"..., 286) = 286
read(19, "\1\0\0\1\2l\0\0\2\3def\20thecodec_CCForum\5c"..., 16384) = 4975
poll([{fd=19, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(19, "\375\0\0\0\3SELECT cache.originaltext a"..., 257) = 257
read(19, "\1\0\0\1\2k\0\0\2\3def\20thecodec_CCForum\5c"..., 16384) = 241
poll([{fd=19, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(19, "u\1\0\0\3SELECT cache.originaltext a"..., 377) = 377
read(19, "\1\0\0\1\2l\0\0\2\3def\20thecodec_CCForum\5c"..., 16384) = 2108
poll([{fd=19, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(19, "N\1\0\0\3SELECT cache.originaltext a"..., 338) = 338
read(19, "\1\0\0\1\2l\0\0\2\3def\20thecodec_CCForum\5c"..., 16384) = 2693
poll([{fd=19, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(19, "\376\0\0\0\3SELECT cache.originaltext a"..., 258) = 258
read(19, "\1\0\0\1\2k\0\0\2\3def\20thecodec_CCForum\5c"..., 16384) = 241
poll([{fd=19, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(19, "\375\0\0\0\3SELECT cache.originaltext a"..., 257) = 257
read(19, "\1\0\0\1\2k\0\0\2\3def\20thecodec_CCForum\5c"..., 16384) = 241
poll([{fd=19, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(19, "(\1\0\0\3SELECT cache.originaltext a"..., 300) = 300
read(19, "\1\0\0\1\2l\0\0\2\3def\20thecodec_CCForum\5c"..., 16384) = 243
poll([{fd=19, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(19, "&\1\0\0\3SELECT cache.originaltext a"..., 298) = 298
read(19, "\1\0\0\1\2l\0\0\2\3def\20thecodec_CCForum\5c"..., 16384) = 243
poll([{fd=19, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(19, "(\1\0\0\3SELECT cache.originaltext a"..., 300) = 300
read(19, "\1\0\0\1\2l\0\0\2\3def\20thecodec_CCForum\5c"..., 16384) = 243
poll([{fd=19, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(19, ",\1\0\0\3SELECT cache.originaltext a"..., 304) = 304
read(19, "\1\0\0\1\2l\0\0\2\3def\20thecodec_CCForum\5c"..., 16384) = 243
poll([{fd=19, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(19, "\373\0\0\0\3SELECT cache.originaltext a"..., 255) = 255
read(19, "\1\0\0\1\2k\0\0\2\3def\20thecodec_CCForum\5c"..., 16384) = 241
clock_gettime(CLOCK_MONOTONIC, {78414, 920421071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78414, 920516071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78414, 920599071}) = 0
time([1292222225]) = 1292222225
clock_gettime(CLOCK_MONOTONIC, {78414, 920816071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78414, 920902071}) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 20
fcntl(20, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(20, F_SETFL, O_RDWR|O_NONBLOCK) = 0
connect(20, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("173.194.36.95")}, 16) = -1 EINPROGRESS (Operation now in progress)
clock_gettime(CLOCK_MONOTONIC, {78414, 921475071}) = 0
poll([{fd=20, events=POLLOUT}], 1, 1000) = 1 ([{fd=20, revents=POLLOUT}])
clock_gettime(CLOCK_MONOTONIC, {78414, 930363071}) = 0
getsockopt(20, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
getpeername(20, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("173.194.36.95")}, [85899345936]) = 0
getsockname(20, {sa_family=AF_INET, sin_port=htons(44624), sin_addr=inet_addr("91.215.181.165")}, [85899345936]) = 0
clock_gettime(CLOCK_MONOTONIC, {78414, 930819071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78414, 930899071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78414, 930977071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78414, 931058071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78414, 931136071}) = 0
sendto(20, "GET /ajax/services/language/tran"..., 1596, MSG_NOSIGNAL, NULL, 0) = 1596
poll([{fd=20, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
poll([{fd=20, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {78414, 931532071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78414, 931611071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78414, 931694071}) = 0
poll([{fd=20, events=POLLIN|POLLPRI}], 1, 1000) = 1 ([{fd=20, revents=POLLIN}])
poll([{fd=20, events=POLLIN|POLLPRI}], 1, 0) = 1 ([{fd=20, revents=POLLIN}])
recvfrom(20, "HTTP/1.1 200 OK\r\nCache-Control: "..., 16384, 0, NULL, NULL) = 541
clock_gettime(CLOCK_MONOTONIC, {78415, 458505071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78415, 458618071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78415, 458720071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78415, 458804071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78415, 458889071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78415, 458982071}) = 0
time([1292222225]) = 1292222225
close(20) = 0
clock_gettime(CLOCK_MONOTONIC, {78415, 459334071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78415, 459506071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78415, 459593071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78415, 459677071}) = 0
time([1292222225]) = 1292222225
clock_gettime(CLOCK_MONOTONIC, {78415, 459894071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78415, 459981071}) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 20
fcntl(20, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(20, F_SETFL, O_RDWR|O_NONBLOCK) = 0
connect(20, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("173.194.36.95")}, 16) = -1 EINPROGRESS (Operation now in progress)
clock_gettime(CLOCK_MONOTONIC, {78415, 460453071}) = 0
poll([{fd=20, events=POLLOUT}], 1, 1000) = 1 ([{fd=20, revents=POLLOUT}])
clock_gettime(CLOCK_MONOTONIC, {78415, 468506071}) = 0
getsockopt(20, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
getpeername(20, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("173.194.36.95")}, [85899345936]) = 0
getsockname(20, {sa_family=AF_INET, sin_port=htons(44635), sin_addr=inet_addr("91.215.181.165")}, [85899345936]) = 0
clock_gettime(CLOCK_MONOTONIC, {78415, 468990071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78415, 469071071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78415, 469149071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78415, 469230071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78415, 469309071}) = 0
sendto(20, "GET /ajax/services/language/tran"..., 2038, MSG_NOSIGNAL, NULL, 0) = 2038
poll([{fd=20, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
poll([{fd=20, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {78415, 469704071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78415, 469783071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78415, 469864071}) = 0
poll([{fd=20, events=POLLIN|POLLPRI}], 1, 1000) = 1 ([{fd=20, revents=POLLIN}])
poll([{fd=20, events=POLLIN|POLLPRI}], 1, 0) = 1 ([{fd=20, revents=POLLIN}])
recvfrom(20, "HTTP/1.1 200 OK\r\nCache-Control: "..., 16384, 0, NULL, NULL) = 541
clock_gettime(CLOCK_MONOTONIC, {78415, 996664071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78415, 996792071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78415, 996874071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78415, 996958071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78415, 997044071}) = 0
clock_gettime(CLOCK_MONOTONIC, {78415, 997142071}) = 0
time([1292222226]) = 1292222226
close(20) = 0
clock_gettime(CLOCK_MONOTONIC, {78415, 997421071}) = 0
poll([{fd=19, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(19, "\352\0\0\0\3\n\t\t\t\t\tUPDATE vb_session\n\t\t\t"..., 238) = 238
read(19, "0\0\0\1\0\1\0\2\0\0\0(Rows matched: 1 Cha"..., 16384) = 52
poll([{fd=19, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(19, ":\0\0\0\3\n\t\tINSERT INTO vb_threadvie"..., 62) = 62
read(19, "\7\0\0\1\0\1\0\2\0\0\0", 16384) = 11
rt_sigaction(SIGPIPE, {0x1, [PIPE], SA_RESTORER|SA_RESTART, 0x3cef4302d0}, {0x1, [PIPE], SA_RESTORER|SA_RESTART, 0x3cef4302d0}, 8) = 0
poll([{fd=19, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(19, "\1\0\0\0\1", 5) = 5
shutdown(19, 2 /* send and receive */) = 0
close(19) = 0
munmap(0x2b227d4ac000, 585728) = 0
rt_sigaction(SIGPIPE, {0x1, [PIPE], SA_RESTORER|SA_RESTART, 0x3cef4302d0}, {0x1, [PIPE], SA_RESTORER|SA_RESTART, 0x3cef4302d0}, 8) = 0
write(1, "X-Powered-By: PHP/5.2.9", 23) = 23
write(1, "\r\n", 2) = 2
write(1, "Set-Cookie: vbet_language=af; Ma"..., 47) = 47
write(1, "\r\n", 2) = 2
write(1, "Set-Cookie: vbet_language=af; Ma"..., 47) = 47
write(1, "\r\n", 2) = 2
write(1, "X-Pingback: http://www.thecodeca"..., 59) = 59
write(1, "\r\n", 2) = 2
write(1, "Set-Cookie: tcclastvisit=1292222"..., 82) = 82
write(1, "\r\n", 2) = 2
write(1, "Set-Cookie: tcclastactivity=0; e"..., 76) = 76
write(1, "\r\n", 2) = 2
write(1, "Cache-Control: private", 22) = 22
write(1, "\r\n", 2) = 2
write(1, "Pragma: private", 15) = 15
write(1, "\r\n", 2) = 2
write(1, "X-UA-Compatible: IE=7", 21) = 21
write(1, "\r\n", 2) = 2
write(1, "Set-Cookie: vbet_sessionUsed=1; "..., 38) = 38
write(1, "\r\n", 2) = 2
write(1, "Set-Cookie: tccuserlgv=1; expire"..., 71) = 71
write(1, "\r\n", 2) = 2
write(1, "Set-Cookie: vbseo_loggedin=delet"..., 81) = 81
write(1, "\r\n", 2) = 2
write(1, "Content-type: text/html; charset"..., 38) = 38
write(1, "\r\n", 2) = 2
write(1, "Content-Encoding: gzip", 22) = 22
write(1, "\r\n", 2) = 2
write(1, "Content-Length: 19198", 21) = 21
write(1, "\r\n", 2) = 2
write(1, "\r\n", 2) = 2
write(1, "\37\213\10\0\0\0\0\0\0\377\355}\351r\33\307\222\356o1\302\357P\206\307&9\"\0\202\244("..., 19198) = 19198
setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={30, 0}}, NULL) = 0
rt_sigaction(SIGPROF, {0x5fae70, [PROF], SA_RESTORER|SA_RESTART, 0x3cef4302d0}, {0x5fae70, [PROF], SA_RESTORER|SA_RESTART, 0x3cef4302d0}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [PROF], NULL, 8) = 0
fcntl(4, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=1}) = 0
fcntl(4, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=1}) = 0
brk(0x1439e000) = 0x1439e000
brk(0x1421e000) = 0x1421e000
munmap(0x2b227d73c000, 2101248) = 0
munmap(0x2b227d53b000, 2101248) = 0
munmap(0x2b227d42b000, 528384) = 0
munmap(0x2b227d22a000, 2101248) = 0
munmap(0x2b227d1a9000, 528384) = 0
munmap(0x2b227cfa8000, 2101248) = 0
setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
close(3) = 0
close(4) = 0
close(5) = 0
close(6) = 0
close(7) = 0
close(8) = 0
close(9) = 0
close(10) = 0
close(11) = 0
close(12) = 0
close(13) = 0
close(14) = 0
close(15) = 0
close(16) = 0
close(17) = 0
close(18) = 0
munmap(0x2b2270fa8000, 201326592) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
Process 6466 detached

mateuszr
13-12-10, 16:10
Your database will grow when you use vBET. Still please note that it will not influence your normal pages generation (not translated), because vBET uses its own tables for cache - do not add data to vBulletin tables (only user default language in user table, but this is very small amount of data). We do not separate forums on list by its size - you can check it and make your own size comparison.

Please note that vBET is very configurable. If you have large forum and you are afraid about performance please start with only 2 languages - your original and some other. Then you can monitor four forum performance and add new languages from time to time. vBET supports 52 languages (in next release we will add more) and you can choose which you want to have on your forum. Some of our clients are not interested in having all possible, some of our clients limits it for performance, some of our clients use all languages.

Also we have guest cache which will take large amount of your hard drive space, but will allow to give immediate responses without any database queries for generation - it is because for guests vBET can cache full responses as static files.

So we have lot of performance improvements. I suggest to see our performance hints for more details:
vBET and performance (http://www.vbenterprisetranslator.com/forum/vbet4-general-discussions/408-vbet-performance.html)

Please note that simple comparison of number of posts and users on other forums will not give you enough of information - you will not see most important information - how big are resources for this forum. I mean number and power of CPU, amount of memory, also important can be specific configuration of Apache, MySQL, vBulletin. One thing is hardware, 2nd is tuning of software for better performance.

I hope that these information will help :)

Simon Lloyd
13-12-10, 18:12
I see you have the double post issue here too!

Why have you marked this SOLVED before i have had chance to reply?

I have been running vbet for a while, languages were turned on slowly, i do not use guest cache, my server has 8 cpus quad core and 2gb of ram PHP 5.2.9 mysql community 5, vbulletin 3.8.6.

My reported issue is NOT hard disk space, it is to do with the amount of CPU that it is using AND that the software is not exiting its call on PHP properly which results in [PHP]<defunct> on the server and until these drop off they occupy cpu time.

mateuszr
14-12-10, 09:30
Double posts - it wasn't an issue, just my ISP suspended connection and thus it happened ;]

Marked as SOLVED - correction has been done, I'm sorry for that



My reported issue is NOT hard disk space, it is to do with the amount of CPU that it is using
What about these performance hints link I have you in the last post? There are several solutions to make your system less loaded.
Additionally, I suggest you to enable 'guest cache' - it has a noticeable effect for performance, especially for your CPU load.
If turned on, then results for guests will be fully cached as exact HTML output.
NOTE: to use this option you have to be sure that server will have privileges to create cache files in vbet_guestcache directory and its subdirectories (use 'CHMOD 777 -R vbet_guestcache').

Simon Lloyd
14-12-10, 11:44
I have ALL your performance tweaks set already, the only one i did not have set was guest cache, i have turned it on with your recommendations but my space on my VM is 50gb of which 26gb is already used so it may be that i have to turn guest cache off because of that.

Anyway that aside VBET is still exiting from a PHP process wrong in some way resulting in [PHP]<defunct> do you have any suggestions or updated vbet files to cure this?

Simon Lloyd
14-12-10, 11:53
The below is for a /usr/bin/php /home/thecodec/public_html/forumz/vbenterprisetranslator_seo.php that is taking 60% of cpu time and there are many more of them!

Process 26400 attached - interrupt to quit
clock_gettime(CLOCK_MONOTONIC, {11988, 470791063}) = 0
poll([{fd=20, events=POLLIN|POLLPRI}], 1, 541) = 1 ([{fd=20, revents=POLLIN}])
poll([{fd=20, events=POLLIN|POLLPRI}], 1, 0) = 1 ([{fd=20, revents=POLLIN}])
recvfrom(20, "HTTP/1.1 200 OK\r\nCache-Control: "..., 16384, 0, NULL, NULL) = 3928
clock_gettime(CLOCK_MONOTONIC, {11988, 474643063}) = 0
clock_gettime(CLOCK_MONOTONIC, {11988, 474765063}) = 0
clock_gettime(CLOCK_MONOTONIC, {11988, 474844063}) = 0
clock_gettime(CLOCK_MONOTONIC, {11988, 474925063}) = 0
clock_gettime(CLOCK_MONOTONIC, {11988, 475011063}) = 0
clock_gettime(CLOCK_MONOTONIC, {11988, 475110063}) = 0
time([1292323924]) = 1292323924
close(20) = 0
clock_gettime(CLOCK_MONOTONIC, {11988, 475378063}) = 0
poll([{fd=19, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(19, "\204\26\0\0\3INSERT IGNORE INTO vb_vbent"..., 5768) = 5768
read(19, "0\0\0\1\0\27\0\2\0\0\0(Records: 64 Duplica"..., 16384) = 52
poll([{fd=19, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(19, "~\27\0\0\3INSERT IGNORE INTO vb_vbent"..., 6018) = 6018
read(19, "/\0\0\1\0\17\0\2\0\0\0'Records: 18 Duplica"..., 16384) = 51
poll([{fd=19, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(19, "\36\20\0\0\3INSERT INTO vb_vbenterprise"..., 4130) = 4130
read(19, ".\0\0\1\0\2\0\2\0\0\0&Records: 2 Duplicat"..., 16384) = 50
brk(0xa9d3000) = 0xa9d3000
brk(0xaa53000) = 0xaa53000
brk(0xa8d3000) = 0xa8d3000
brk(0xa913000) = 0xa913000
brk(0xa953000) = 0xa953000
poll([{fd=19, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(19, "\354\0\0\0\3\n\t\t\t\t\tUPDATE vb_session\n\t\t\t"..., 240) = 240
read(19, "0\0\0\1\0\1\0\2\0\0\0(Rows matched: 1 Cha"..., 16384) = 52
poll([{fd=19, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(19, ";\0\0\0\3\n\t\tINSERT INTO vb_threadvie"..., 63) = 63
read(19, "\7\0\0\1\0\1\0\2\0\0\0", 16384) = 11
rt_sigaction(SIGPIPE, {0x1, [PIPE], SA_RESTORER|SA_RESTART, 0x3cef4302d0}, {0x1, [PIPE], SA_RESTORER|SA_RESTART, 0x3cef4302d0}, 8) = 0
poll([{fd=19, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(19, "\1\0\0\0\1", 5) = 5
shutdown(19, 2 /* send and receive */) = 0
close(19) = 0
munmap(0x2aaafe3a8000, 585728) = 0
rt_sigaction(SIGPIPE, {0x1, [PIPE], SA_RESTORER|SA_RESTART, 0x3cef4302d0}, {0x1, [PIPE], SA_RESTORER|SA_RESTART, 0x3cef4302d0}, 8) = 0
write(1, "X-Powered-By: PHP/5.2.9", 23) = 23
write(1, "\r\n", 2) = 2
write(1, "Set-Cookie: vbet_language=fa; Ma"..., 47) = 47
write(1, "\r\n", 2) = 2
write(1, "Set-Cookie: vbet_language=fa; Ma"..., 47) = 47
write(1, "\r\n", 2) = 2
write(1, "X-Pingback: http://www.thecodeca"..., 59) = 59
write(1, "\r\n", 2) = 2
write(1, "Set-Cookie: tcclastvisit=1292323"..., 82) = 82
write(1, "\r\n", 2) = 2
write(1, "Set-Cookie: tcclastactivity=0; e"..., 76) = 76
write(1, "\r\n", 2) = 2
write(1, "Cache-Control: private", 22) = 22
write(1, "\r\n", 2) = 2
write(1, "Pragma: private", 15) = 15
write(1, "\r\n", 2) = 2
write(1, "X-UA-Compatible: IE=7", 21) = 21
write(1, "\r\n", 2) = 2
write(1, "Set-Cookie: vbet_sessionUsed=1; "..., 38) = 38
write(1, "\r\n", 2) = 2
write(1, "Set-Cookie: tccuserlgv=1; expire"..., 71) = 71
write(1, "\r\n", 2) = 2
write(1, "Set-Cookie: vbseo_loggedin=delet"..., 81) = 81
write(1, "\r\n", 2) = 2
write(1, "Content-type: text/html; charset"..., 38) = 38
write(1, "\r\n", 2) = 2
write(1, "Content-Encoding: gzip", 22) = 22
write(1, "\r\n", 2) = 2
write(1, "Content-Length: 41315", 21) = 21
write(1, "\r\n", 2) = 2
write(1, "\r\n", 2) = 2
write(1, "\37\213\10\0\0\0\0\0\0\377\354\275[s[U\2666|\235T\361\37&\342\rv6\266d\311\347"..., 41315) = 41315
setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={30, 0}}, NULL) = 0
rt_sigaction(SIGPROF, {0x5fae70, [PROF], SA_RESTORER|SA_RESTART, 0x3cef4302d0}, {0x5fae70, [PROF], SA_RESTORER|SA_RESTART, 0x3cef4302d0}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [PROF], NULL, 8) = 0
fcntl(4, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=1}) = 0
fcntl(4, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=1}) = 0
brk(0xa7d3000) = 0xa7d3000
brk(0xa5d3000) = 0xa5d3000
munmap(0x2aaafe638000, 2101248) = 0
munmap(0x2aaafe437000, 2101248) = 0
munmap(0x2aaafe327000, 528384) = 0
munmap(0x2aaafe126000, 2101248) = 0
munmap(0x2aaafe0a5000, 528384) = 0
munmap(0x2aaafdea4000, 2101248) = 0
setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
close(3) = 0
close(4) = 0
close(5) = 0
close(6) = 0
close(7) = 0
close(8) = 0
close(9) = 0
close(10) = 0
close(11) = 0
close(12) = 0
close(13) = 0
close(14) = 0
close(15) = 0
close(16) = 0
close(17) = 0
close(18) = 0
munmap(0x2aaaf1ea4000, 201326592) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
Process 26400 detached

mateuszr
14-12-10, 14:11
Please note that your output doesn't show how vBET consumes your CPU, but how your whole forum consumes your CPU. You check see that you will still see /home/thebull/public_html/forums/vbenterpris even when vBET will be disabled, because your .htaccess is redirecting all forum requests (excluding index.php) to our front controller vbenterprisetranslator_seo.php which only sets some variables for vBSEO and includes vbseo.php So vbenterprisetranslator_seo.php acts more like intercepting filter for vbseo.php which is front controller. If you remove vBET completely, then in your output you will see that whole CPU is taken by vbseo.php - what will be also not true. This output is just misinterpreted.

So this is not CPU usage by vBET - this is CPU usage by whole your forum

Also please note that for not translated pages vBET does almost nothing - just add flags and parses langtitle globally (only if there is what to parse). So if your CPU usage grows after enabling vBET it is because you have additional traffic to translated pages. When translated page is used then vBET have to translate it and no matter how we will optimize our code (what we are doing all the time) it will always cost something. But...

But to be honest - not always. Because now you have great functionality of Guest Cache which allows your forum to generate responses much faster, even for normal (not translated) forum pages. Please note that this functionality is still in BETA state, but we already made there lot of updates basing on our users feedback. So if you didn't try to use it in last release - please try it - in last release we solved many issues related to Guest Cache :)

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Translations delivered by vB Enterprise Translator 4.10.1