GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Too many processes index.php - Help wanted! (https://gfy.com/showthread.php?t=1184706)

ravenazrael 02-13-2016 07:28 AM

Too many processes index.php - Help wanted!
 
Hello guys,
I have been having issues with my site for quite some time. I got two people taking a look at it and could not give me an explanation.

My site is in a Shared Hosting. Getting traffic of around 20k people a day. I have been getting alerts that my site is running to many processes here and there. It has gotten to the point where I run 22 processes and the following minute just 1. The amount of users online was less than 100, so it is definitively not the traffic.

I deactivated all plugins and the issue continued. I activated them one by one and problem seemed solved, but again Processes are up and down. The site is slow or users get the 500 error as the Hosting says I use too many resources.

No weird file on the File Manager, I have wordfence installed.

ANy idea what it may be?
Site is boobsrealm.com.

Focus 02-13-2016 07:48 AM

Why shared hosting with 20k a day? ..

ravenazrael 02-13-2016 07:55 AM

Quote:

Originally Posted by Focus (Post 20728441)
Why shared hosting with 20k a day? ..

Shit, I made a huge typo.. it is 10k a day..

rogueteens 02-13-2016 07:55 AM

have you tried a cache plugin?

ravenazrael 02-13-2016 07:58 AM

Quote:

Originally Posted by rogueteens (Post 20728447)
have you tried a cache plugin?

I have it. I even tried it activating it and deactivating it.. issue continued

plsureking 02-13-2016 08:11 AM

one of 2 things:

- your hosting sucks
- your coding sucks

a single page poorly written can easily run up dozens of processes for each hit. if all the content is loading via script, that will add a lot of processes. using mysql will add more. if you want to continue using the worst hosting you can possibly buy, i'd make sure your code is clean and optimized. maybe cache it too.

.

ravenazrael 02-13-2016 08:24 AM

Quote:

Originally Posted by plsureking (Post 20728454)
one of 2 things:

- your hosting sucks
- your coding sucks

a single page poorly written can easily run up dozens of processes for each hit. if all the content is loading via script, that will add a lot of processes. using mysql will add more. if you want to continue using the worst hosting you can possibly buy, i'd make sure your code is clean and optimized. maybe cache it too.

.

I am with Hostgator, so I guess it might be the coding. However, what is weird is that there have not been any changes on any script or code in the last few months.

plsureking 02-13-2016 08:31 AM

Quote:

Originally Posted by ravenazrael (Post 20728461)
I am with Hostgator, so I guess it might be the coding. However, what is weird is that there have not been any changes on any script or code in the last few months.

i had a chat with HG a couple years ago about server performance on a shared host (we were using it for tgps). he told me some of their shared servers have as many as 4000 sites on them. that's 3 zeros.

if your site/business is worth anything to you, i'd recommend upgrading to VPS. HG can probably move your site for free.

.

ravenazrael 02-13-2016 08:35 AM

Quote:

Originally Posted by plsureking (Post 20728466)
i had a chat with HG a couple years ago about server performance on a shared host (we were using it for tgps). he told me some of their shared servers have as many as 4000 sites on them. that's 3 zeros.

if your site/business is worth anything to you, i'd recommend upgrading to VPS. HG can probably move your site for free.

.

Thanks. I am considering going to a VPS as I am expecting more traffic to this site a new one. However, the HG guy told me that the VPS allows also limited processes and that this particular issue would happene again even on the VPS. He adviced a dedicated server, however, he says that before considering it I should fix the problem

plsureking 02-13-2016 08:40 AM

Quote:

Originally Posted by ravenazrael (Post 20728468)
Thanks. I am considering going to a VPS as I am expecting more traffic to this site a new one. However, the HG guy told me that the VPS allows also limited processes and that this particular issue would happene again even on the VPS. He adviced a dedicated server, however, he says that before considering it I should fix the problem

with a VPS , you are guaranteed a minimum amount of memory and processing power. those guarantees don't exist on shared. if their VPS accounts crash with 22 active processes, go to Hostwinds. you should be able to have hundreds if not thousands of processes working every second.

.

redwhiteandblue 02-13-2016 08:42 AM

Quote:

Originally Posted by ravenazrael (Post 20728468)
Thanks. I am considering going to a VPS as I am expecting more traffic to this site a new one. However, the HG guy told me that the VPS allows also limited processes and that this particular issue would happene again even on the VPS. He adviced a dedicated server, however, he says that before considering it I should fix the problem

Move to a decent VPS. I used to have one at Amerinoc and it ran like a dedicated.

ruff 02-13-2016 08:42 AM

I have found that the processes issue is one used by shared hosting companies to get around that unlimited everything bullshit that they lured you into signing with. This is almost exclusively if you are using Wordpress. Shared hosting only works with sites that get 10 hits a day. At 10k you are now an upgrade target.

ravenazrael 02-13-2016 08:45 AM

Quote:

Originally Posted by plsureking (Post 20728469)
with a VPS , you are guaranteed a minimum amount of memory and processing power. those guarantees don't exist on shared. if their VPS accounts crash with 22 active processes, go to Hostwinds. you should be able to have hundreds if not thousands of processes working every second.

.

OK thanks. Never heard of Hostwinds.. will take a look

ravenazrael 02-13-2016 08:51 AM

Quote:

Originally Posted by ruff (Post 20728471)
I have found that the processes issue is one used by shared hosting companies to get around that unlimited everything bullshit that they lured you into signing with. This is almost exclusively if you are using Wordpress. Shared hosting only works with sites that get 10 hits a day. At 10k you are now an upgrade target.

Damn.. ok well I really hope that is the answer and not some shitty thing going on on the site

rogueteens 02-13-2016 09:07 AM

Quote:

Originally Posted by ravenazrael (Post 20728473)
OK thanks. Never heard of Hostwinds.. will take a look

Check M3 Server too, they are pretty good.

ravenazrael 02-13-2016 09:15 AM

Quote:

Originally Posted by rogueteens (Post 20728479)
Check M3 Server too, they are pretty good.

thanks, will take a look too, but I saw Hostwinds seems to be good

myleene 02-13-2016 09:19 AM

How can you get 10k visitors with a site that is so slow?
Website speed test

Your hosting is hindering your growth, it's making you lose sales and it utterly sucks.

nightslit 02-13-2016 09:32 AM

if your site is a wordpress site I would have a look at your template.. stuff like <?php bloginfo() ?> and other wordpress functions are all using unnecessairy memory etc.. -> simply replace it by the real output (here for ex. Wordpress version etc..) instead of using wordpress functions.

Horatio Caine 02-13-2016 09:36 AM

Quote:

Originally Posted by plsureking (Post 20728454)
- your coding sucks


.

He is using wp, idiot. He didn't code shit.

Look in your logs and see if anyone iframing you or using images.

erichon 02-13-2016 09:39 AM

I had the same problem with my sites. First empty the caches in cpanel. In my case it was robots and spam companies. Go to your cpanel and access raw log. Download it and open in a text editor. search for "bot" and check the ip ranges. Block these Ips on firewire level. In cpanel it is a button where you can block IPs. Check the list you downloaded for IPs from the same serial like 196.55.14.xxx. If you find many of the same first three number groups it is most likely bots. Check the IP range as well and block it. I did so and it first lowered my UVs of course but improved my ratio, second the websites were free for quality traffic and did not reach its limits.

ravenazrael 02-13-2016 09:40 AM

Quote:

Originally Posted by myleene (Post 20728490)
How can you get 10k visitors with a site that is so slow?
Website speed test

Your hosting is hindering your growth, it's making you lose sales and it utterly sucks.

it started getting slow because of the hosting puting my site on the alert watch.
yes that si why I need to move the site

ravenazrael 02-13-2016 09:51 AM

Thanks. will check the logs and the blog info
went out to eat something and my car's engine died because of the cold so waiting for road assistance in the warm Quebec.

sandman! 02-13-2016 10:14 AM

your site took forever to load here your probably losings half your traffic to slow loading its time to upgrade hosting.

babeterminal 02-13-2016 10:50 AM

use cloudflare.com

DVTimes 02-13-2016 11:29 AM

boobsrealm.com does not load for me

ravenazrael 02-13-2016 12:28 PM

Quote:

Originally Posted by sandman! (Post 20728538)
your site took forever to load here your probably losings half your traffic to slow loading its time to upgrade hosting.

yeah.. this is shitty

Barry-xlovecam 02-13-2016 01:12 PM

Code:


user$ ps aux|grep php

then get root
sudo -i or su pwd****

root$ ps aux|grep php

See what you have going then
user or root$ kill [pid # shown]

then restart your server Linux / Unix: Restart PHP Service Command
If the problem persists you have a bad php script on the server (or an 3v1L script). At any rate you cannot do the above so email the host's tech department -- good luck.

sandman! 02-13-2016 03:04 PM

user is on shared hosting there is nothing for them to restart :2 cents::2 cents::2 cents:

Quote:

Originally Posted by Barry-xlovecam (Post 20728650)
Code:


user$ ps aux|grep php

then get root
sudo -i or su pwd****

root$ ps aux|grep php

See what you have going then
user or root$ kill [pid # shown]

then restart your server Linux / Unix: Restart PHP Service Command
If the problem persists you have a bad php script on the server (or an 3v1L script). At any rate you cannot do the above so email the host's tech department -- good luck.


ravenazrael 02-13-2016 03:08 PM

Quote:

Originally Posted by Barry-xlovecam (Post 20728650)
Code:


user$ ps aux|grep php

then get root
sudo -i or su pwd****

root$ ps aux|grep php

See what you have going then
user or root$ kill [pid # shown]

then restart your server Linux / Unix: Restart PHP Service Command
If the problem persists you have a bad php script on the server (or an 3v1L script). At any rate you cannot do the above so email the host's tech department -- good luck.

thanks. I am not that tech savvy. where is that code from? the person who can help me reviewing the site is not.available.til.monday. I got a message from hostgator that it might be a script causing the issue. they don't say which

Colmike9 02-13-2016 04:03 PM

Quote:

Originally Posted by plsureking (Post 20728454)
one of 2 things:

- your hosting sucks
- your coding sucks

a single page poorly written can easily run up dozens of processes for each hit. if all the content is loading via script, that will add a lot of processes. using mysql will add more. if you want to continue using the worst hosting you can possibly buy, i'd make sure your code is clean and optimized. maybe cache it too.

.

Pretty much. I've had that error before, but only when I'm high and bored and code some stupid php Lol.
And yes, better hosting fixed the problems most of the time, but so did better code. :upsidedow

HomerSimpson 02-13-2016 06:33 PM

1. your hosting is a joke (it takes 20 seconds to deliver the page)
2. install wp super cache plugin ASAP
3. get a new hosting and migrate the site (VPS or dedicated with SSD drive)

btw: nice looking site... interested in link exchange?

olivierx 02-13-2016 08:28 PM

Quote:

Originally Posted by ravenazrael (Post 20728435)
Hello guys,
I have been having issues with my site for quite some time. I got two people taking a look at it and could not give me an explanation.

My site is in a Shared Hosting. Getting traffic of around 20k people a day. I have been getting alerts that my site is running to many processes here and there. It has gotten to the point where I run 22 processes and the following minute just 1. The amount of users online was less than 100, so it is definitively not the traffic.

I deactivated all plugins and the issue continued. I activated them one by one and problem seemed solved, but again Processes are up and down. The site is slow or users get the 500 error as the Hosting says I use too many resources.

No weird file on the File Manager, I have wordfence installed.

ANy idea what it may be?
Site is boobsrealm.com.

The 10k people on a day, are they skimmed traffic ( view only one pages then leave ) or they view many page?

If most of your traffic don't view more then one page, here what i'd suggest ( i did it on a host gator shared hosting , i had 100k daily visit while only 5% where viewing more then 1 page yea lot of skimmed traffic )

You make a manual cached file, index.html, all your traffic goes to your home page which is html, then if they view other page they go the the PHP.

If that doesnt work, you may try cloudflare, they saved me huge amount of traffic by caching most of the content.

If you have 100 active users and all of them making php request it is normal to have many process running. Static html home page is needed if you have too many users.

Good cache plugins will make many statics html page which visitor will only view html unless your site actually need to make new php request for every hit..

olivierx 02-13-2016 08:29 PM

How can you guys suggest ''root'' command when he said he use a shared hosting.... which shared hosting have root access?? VPS OK but shared hosting???

Barry-xlovecam 02-13-2016 08:41 PM

Quote:

Originally Posted by olivierx (Post 20728851)
How can you guys suggest ''root'' command when he said he use a shared hosting.... which shared hosting have root access?? VPS OK but shared hosting???

You did not read my post -- I said

"At any rate you cannot do the above so email the host's tech department -- good luck."

That was my point -- shared hosting sucks. It is usually like living in an apartment building [or housing project] with a few slimeballs that have no respect for the other tenants.

If you have no ssh access to your account you cannot check your scripts' processes. You cannot restart a HTTP server as a user -- you can't really do much except make all your php files chmod 500 . You have no way to reenable them 1 by 1 and see if any of your scripts are the issue.

olivierx 02-13-2016 08:49 PM

Quote:

Originally Posted by Barry-xlovecam (Post 20728859)
You did not read my post -- I said

"At any rate you cannot do the above so email the host's tech department -- good luck."

That was my point -- shared hosting sucks. It is usually like living in an apartment building [or housing project] with a few slimeballs that have no respect for the other tenants.

I did not read thats true, when i see root commands suggestion i find it totally off topic, i mean, the guy say he has shared hosting and you talk about root commands, this is totally not related to his issue... only mixing up the head of a non-tech savvy guy.

ctggls 02-13-2016 08:50 PM

Try deactivating wp_cron and setup your own cron job from cpanel. There are a lot of tutorials about that, even on the help page of HG. Also you want to try wp total cache or something similar. Might want to do some cache via .htaccess . Also make sure that you upload your featured images at the dimension that you set in php_the_thumbnail... Don't let wp do the autoresize...

ravenazrael 02-13-2016 08:52 PM

Quote:

Originally Posted by olivierx (Post 20728850)
The 10k people on a day, are they skimmed traffic ( view only one pages then leave ) or they view many page?

If most of your traffic don't view more then one page, here what i'd suggest ( i did it on a host gator shared hosting , i had 100k daily visit while only 5% where viewing more then 1 page yea lot of skimmed traffic )

You make a manual cached file, index.html, all your traffic goes to your home page which is html, then if they view other page they go the the PHP.

If that doesnt work, you may try cloudflare, they saved me huge amount of traffic by caching most of the content.

If you have 100 active users and all of them making php request it is normal to have many process running. Static html home page is needed if you have too many users.

Good cache plugins will make many statics html page which visitor will only view html unless your site actually need to make new php request for every hit..

the average number of page views is between 1.5 to 2. would that still work?

ravenazrael 02-13-2016 08:54 PM

Quote:

Originally Posted by HomerSimpson (Post 20728815)
1. your hosting is a joke (it takes 20 seconds to deliver the page)
2. install wp super cache plugin ASAP
3. get a new hosting and migrate the site (VPS or dedicated with SSD drive)

btw: nice looking site... interested in link exchange?

I have the super cache plugins installed already.
thanks. sure email me at [email protected] for the link exchange

olivierx 02-13-2016 09:07 PM

Quote:

Originally Posted by ravenazrael (Post 20728867)
the average number of page views is between 1.5 to 2. would that still work?

deliver a static home page and i think that would solve your problem set up cache plugin to force 100% static page

ravenazrael 02-17-2016 07:05 PM

Hello. It seems some ppl where iframing my site.. seems to be solved now..thanks everybody! And I will still change hosting

PornoPlopedia 02-17-2016 07:46 PM

Quote:

Originally Posted by ravenazrael (Post 20731952)
Hello. It seems some ppl where iframing my site.. seems to be solved now..thanks everybody! And I will still change hosting

Doesn't seem to be working now JC
check the plugins if you have wp

error I got while visiting your site

ERROR 500 - INTERNAL SERVER ERROR
Why am I seeing this page?
Is there anything that I can do?
Understanding Filesystem Permissions
How to modify your .htaccess file
How to modify file and directory permissions

mikesouth 02-17-2016 07:48 PM

Quote:

Originally Posted by ravenazrael (Post 20728461)
I am with Hostgator, so I guess it might be the coding. However, what is weird is that there have not been any changes on any script or code in the last few months.

DING DING DING we have a winner...you get what you pay for.

and yes it almost certainly is the number of users index.php is the home page every single user opens at least one process


Call M3Servers and let them fix you up

ravenazrael 02-17-2016 07:58 PM

Quote:

Originally Posted by PornoPlopedia (Post 20731974)
Doesn't seem to be working now JC
check the plugins if you have wp

error I got while visiting your site

ERROR 500 - INTERNAL SERVER ERROR
Why am I seeing this page?
Is there anything that I can do?
Understanding Filesystem Permissions
How to modify your .htaccess file
How to modify file and directory permissions

yep you are right. I installed the GZip plugin and this happened.. also found out the updated them is/was not working on chrome
:mad:

trevesty 02-17-2016 07:59 PM

Get a better host. A $10 VPS at Vultr / DigitalOcean should be able to handle 10k/day using Wordpress no problem if setup properly. If you're not tech savvy, get one from M3 Servers or another decent host. HG is very terrible.

ravenazrael 02-17-2016 08:05 PM

Quote:

Originally Posted by trevesty (Post 20731983)
Get a better host. A $10 VPS at Vultr / DigitalOcean should be able to handle 10k/day using Wordpress no problem if setup properly. If you're not tech savvy, get one from M3 Servers or another decent host. HG is very terrible.

Thanks.. yes I am moving out to another one this weekend...Had enough

OH and deleted the plugin that cause the 500... still have the issue, but this time the processes are 1/25..

ravenazrael 02-17-2016 08:51 PM

fixed! =)

sarettah 02-17-2016 09:28 PM

Quote:

Originally Posted by ravenazrael (Post 20732002)
fixed! =)

Hmmm. Still took a slow count to 11 to load the page for me.

.

ravenazrael 02-18-2016 06:01 AM

Quote:

Originally Posted by sarettah (Post 20732017)
Hmmm. Still took a slow count to 11 to load the page for me.

.

Thanks. It is weird. For some people it is taking a lot, thanks

NatalieK 02-18-2016 08:49 AM

Quote:

Originally Posted by ravenazrael (Post 20732176)
Thanks. It is weird. For some people it is taking a lot, thanks

the site opened fast & efficiently here :thumbsup


All times are GMT -7. The time now is 03:49 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123