1
Discussion & Troubleshooting / Re: hight CPU with 50 visit per day!!!
« on: January 02, 2012, 06:24:12 PM »
I too modified to be updated. Especially since earlier worked fine.
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.
Hello,
I apologize, but I was forced to suspend the scripts within /home/artporta/public_html as it was causing a high load on the server, and due to it affecting all of the other accounts on the system, I forced to take immediate action for the health of the server.
Unfortunately I do not have any specific recommendations for this script, however, in general, adding some sort of caching mechanism, where the script does not need to generate a new page with every request, helps to lower the over load that a script will cause. Likely the original author or support group of the software that you are using will be able to help you to understand how to add something of this nature.
One of the primary causes of this issue is the length of time that these processes are running and requiring CPU usage. There may be additional steps required to assist your script in completing quicker, such as minimizing remotely included content.
If you reply back to this with your IP address (http://www.hostgator.com/ip.shtml) we will be more than happy to go ahead enable HTTP access for you, so that you can safely work on the script without it causing further issues.
Please let us know how you would like to proceed.
Running Processes:
artporta 9720 0.0 0.1 36044 14828 ? DN 03:21 0:00 /usr/bin/php /home/artporta/public_html/categories.php
artporta 9760 0.0 0.1 36044 14828 ? SN 03:21 0:00 /usr/bin/php /home/artporta/public_html/categories.php
artporta 10390 0.0 0.1 36044 14832 ? SN 03:22 0:00 /usr/bin/php /home/artporta/public_html/categories.php
artporta 10470 0.0 0.1 36044 14828 ? SN 03:22 0:00 /usr/bin/php /home/artporta/public_html/categories.php
artporta 11337 0.0 0.1 36044 14832 ? SN 03:22 0:00 /usr/bin/php /home/artporta/public_html/categories.php
artporta 11843 0.0 0.1 36044 14828 ? SN 03:23 0:00 /usr/bin/php /home/artporta/public_html/categories.php
artporta 11872 0.0 0.1 36044 14832 ? SN 03:23 0:00 /usr/bin/php /home/artporta/public_html/categories.php
artporta 11939 0.0 0.1 36044 14816 ? SN 03:23 0:00 /usr/bin/php /home/artporta/public_html/categories.php
artporta 12628 0.0 0.1 36044 14828 ? SN 03:24 0:00 /usr/bin/php /home/artporta/public_html/categories.php
artporta 12644 0.0 0.1 36044 14832 ? SN 03:24 0:00 /usr/bin/php /home/artporta/public_html/categories.php
artporta 12655 0.0 0.1 36044 14828 ? SN 03:24 0:00 /usr/bin/php /home/artporta/public_html/categories.php
artporta 12742 0.0 0.1 36044 14816 ? SN 03:24 0:00 /usr/bin/php /home/artporta/public_html/categories.php
artporta 13265 0.0 0.1 36044 14868 ? SN 03:25 0:00 /usr/bin/php /home/artporta/public_html/index.php
artporta 13416 0.0 0.1 36044 14884 ? SN 03:25 0:00 /usr/bin/php /home/artporta/public_html/index.php
Running Queries:
Current Site Requests:
141.170.229.44 artportal.in.ua /
141.170.229.44 artportal.in.ua /
141.170.229.44 artportal.in.ua /cat2.htm?page=17
141.170.229.44 artportal.in.ua /cat2.htm?page=17
141.170.229.44 artportal.in.ua /cat2.htm?page=18
141.170.229.44 artportal.in.ua /cat2.htm?page=19
141.170.229.44 artportal.in.ua /cat2.htm?page=19
141.170.229.44 artportal.in.ua /cat2.htm?page=19
141.170.229.44 artportal.in.ua /cat2.htm?page=19
141.170.229.44 artportal.in.ua /cat2.htm?page=19
141.170.229.44 artportal.in.ua /cat2.htm?page=19
141.170.229.44 artportal.in.ua /cat2.htm?page=19
141.170.229.44 artportal.in.ua /cat2.htm?page=20
141.170.229.44 artportal.in.ua /cat2.htm?page=20
157.55.17.199 artportal.in.ua /profile519.htm
[Sat Dec 31 03:40:18 CST 2011] Server Load Before Suspension: 71.58, 69.76, 46.55
[Sat Dec 31 03:40:18 CST 2011] Suspending /home/artporta/public_html!
Waiting 60 Seconds for Server Load.
[Sat Dec 31 03:41:19 CST 2011] Server Load After Suspension: 62.29, 67.75, 47.34
Waiting 60 Seconds for Server Load.
[Sat Dec 31 03:42:19 CST 2011] Server Load After Suspension: 46.27, 62.22, 46.72
Code: [Select]DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND c.cat_id = i.cat_id ORDER BY i.image_comments DESC LIMIT 1
How can I fix that? Please help me!
Unknown column 'i.user_id' in 'on clause'
Regards,
$sql = "SELECT DISTINCT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name".get_user_table_field(", u.", "user_name")."
FROM (".IMAGES_TABLE." i, ".CATEGORIES_TABLE." c)
LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id)
WHERE i.image_active = 1 AND i.cat_id NOT IN ($cat_id_sql) AND c.cat_id = i.cat_id
http://artportal.in.ua/postit.php?url=http://artportal.in.ua/img859.htm?l=russian&name=%D0%9C%D0%B0%D0%BA%D0%BE%D0%B2%D1%8B%D0%B9%20%D0%BA%D0%BE%D0%B2%D0%B5%D1%80&cat_id=2&media_url=45991.jpg&thumb=45991.jpg&height=533&width=800&size=473.2%C2%A0KB
http://artportal.in.ua/postit.php?url=http://artportal.in.ua/img859.htm&name=%D0%9C%D0%B0%D0%BA%D0%BE%D0%B2%D1%8B%D0%B9%20%D0%BA%D0%BE%D0%B2%D0%B5%D1%80&cat_id=2&media_url=45991.jpg&thumb=45991.jpg&height=533&width=800&size=473.2%C2%A0KB
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
http://youpages.com/img849.htm?l=russian
#
193.43.222.3 - - [22/Aug/2009:14:26:14 -0700] "POST /ajaxcomments.php?l=ukrainian&js&commentbg=1&l=ukrainian HTTP/1.1" 200 1409 "http://xxx.com/img653.htm?l=ukrainian" "Mozilla/5.0 (Windows; U; Windows NT 5.1; uk; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 WebMoney Advisor"
#
193.43.222.3 - - [22/Aug/2009:14:26:35 -0700] "GET /admin/email.php?action=emailusers&l=ukrainian HTTP/1.1" 200 5281 "http://xxx.com/admin/index.php?action=nav&l=ukrainian" "Mozilla/5.0 (Windows; U; Windows NT 5.1; uk; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 WebMoney Advisor"
193.43.222.3 - - [22/Aug/2009:14:26:35 -0700] "GET /admin/email.php?action=emailusers&l=ukrainian HTTP/1.1" 200 5281 "http://xxx.com/admin/index.php?action=nav&l=ukrainian" "Mozilla/5.0 (Windows; U; Windows NT 5.1; uk; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 WebMoney Advisor"
#
193.43.222.3 - - [22/Aug/2009:14:26:40 -0700] "GET /admin/settings.php?action=modifysettings&l=ukrainian HTTP/1.1" 200 5538 "http://xxx.com/admin/index.php?action=nav&l=ukrainian" "Mozilla/5.0 (Windows; U; Windows NT 5.1; uk; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 WebMoney Advisor"
#
193.43.222.3 - - [22/Aug/2009:14:26:40 -0700] "GET /admin/settings.php?action=modifysettings&l=ukrainian HTTP/1.1" 200 5538 "http://xxx.com/admin/index.php?action=nav&l=ukrainian" "Mozilla/5.0 (Windows; U; Windows NT 5.1; uk; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 WebMoney Advisor"
#
193.43.222.3 - - [22/Aug/2009:14:26:46 -0700] "GET /admin/email.php?action=emailusers&l=ukrainian HTTP/1.1" 200 5281 "http://xxx.com/admin/index.php?action=nav&l=ukrainian" "Mozilla/5.0 (Windows; U; Windows NT 5.1; uk; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 WebMoney Advisor"
#
193.43.222.3 - - [22/Aug/2009:14:26:47 -0700] "GET /admin/email.php?action=emailusers&l=ukrainian HTTP/1.1" 200 5281 "http://xxx.com/admin/index.php?action=nav&l=ukrainian" "Mozilla/5.0 (Windows; U; Windows NT 5.1; uk; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 WebMoney Advisor"
#
193.43.222.3 - - [22/Aug/2009:14:38:58 -0700] "POST /admin/email.php?l=ukrainian HTTP/1.1" 200 1446 "http://xxx.com/admin/email.php?action=emailusers&l=ukrainian" "Mozilla/5.0 (Windows; U; Windows NT 5.1; uk; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 WebMoney Advisor"
#
$letters = preg_replace("/[^а-яa-z0-9 ]/si","",$letters);
but still don't work