Author Topic: Website really slow  (Read 20763 times)

Offline Cyborg

  • Master Member Mark III
  • *****
  • Posts: 1,957
Website really slow
« on: April 15, 2016, 10:59:59 pm »
It's taking me forever even to post a message. Not happening at other sites.
Kahuna strategy guide:
http://www.arcengames.com/forums/index.php/topic,13369.0.html

Suggestions, bugs? Don't be lazy, give back:
http://www.arcengames.com/mantisbt/

Planetcracker. Believe it.

The stigma of hunger. http://wayw.re/Vi12BK

Offline Dominus Arbitrationis

  • Arcen Games Contractor
  • Arcen Staff
  • Sr. Member Mark III
  • *****
  • Posts: 479
Re: Website really slow
« Reply #1 on: April 15, 2016, 11:25:22 pm »
I am aware of the issue and am working to get it resolved. (Wow that sounds like the super canned response that you get from the big companies)
Come help out at the Wiki!

Have ideas or bug reports for one of Arcen's games or any part of the site? Use  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games and site better!

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Website really slow
« Reply #2 on: April 16, 2016, 12:11:26 am »
Been bugging me today, too. I tried to fix it but failed. Quinn seems to have gotten it, though, now. :)
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Dominus Arbitrationis

  • Arcen Games Contractor
  • Arcen Staff
  • Sr. Member Mark III
  • *****
  • Posts: 479
Re: Website really slow
« Reply #3 on: April 16, 2016, 12:13:24 am »
Let me know if you're still having issues with the site's speed though! :)
Come help out at the Wiki!

Have ideas or bug reports for one of Arcen's games or any part of the site? Use  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games and site better!

Offline Cinth

  • Core Member Mark II
  • *****
  • Posts: 2,527
  • Resident Zombie
Re: Website really slow
« Reply #4 on: April 16, 2016, 03:54:44 am »
I am aware of the issue and am working to get it resolved. (Wow that sounds like the super canned response that you get from the big companies)

That is the canned response (except it's we're aware).  Suggesting feigned ignorance of issues existence and denial it ever happens ( wait, that's canned too :/)
Quote from: keith.lamothe
Opened your save. My computer wept. Switched to the ST planet and ship icons filled my screen, so I zoomed out. Game told me that it _was_ totally zoomed out. You could seriously walk from one end of the inner grav well to the other without getting your feet cold.

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Website really slow
« Reply #5 on: April 16, 2016, 02:38:16 pm »
You are now banned for discontent. Wait, that's not right either. ;)
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline chemical_art

  • Core Member Mark IV
  • *****
  • Posts: 3,952
  • Fabulous
Re: Website really slow
« Reply #6 on: April 16, 2016, 05:24:15 pm »
I can confirm that the website is running slower, but it is improved compared to what it was before.
Life is short. Have fun.

Offline Cyborg

  • Master Member Mark III
  • *****
  • Posts: 1,957
Re: Website really slow
« Reply #7 on: April 16, 2016, 07:15:28 pm »
There are some speed variations. Currently running very slow.
Kahuna strategy guide:
http://www.arcengames.com/forums/index.php/topic,13369.0.html

Suggestions, bugs? Don't be lazy, give back:
http://www.arcengames.com/mantisbt/

Planetcracker. Believe it.

The stigma of hunger. http://wayw.re/Vi12BK

Offline Mánagarmr

  • Core Member Mark V
  • *****
  • Posts: 4,272
  • if (isInRange(target)) { kill(target); }
Re: Website really slow
« Reply #8 on: April 16, 2016, 07:16:44 pm »
Very...slow.
Click here to get started with Mantis for Suggestions and Bug Reports.

Thank you for contributing to making the game better!

Offline chemical_art

  • Core Member Mark IV
  • *****
  • Posts: 3,952
  • Fabulous
Re: Website really slow
« Reply #9 on: April 19, 2016, 02:51:42 pm »
Posting is a chore since things are running really slowly.
Life is short. Have fun.

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Website really slow
« Reply #10 on: April 19, 2016, 03:15:01 pm »
Y...e...s...  I... ag...r...ee...

I am not sure what is going on.
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Draco18s

  • Resident Velociraptor
  • Core Member Mark V
  • *****
  • Posts: 4,251
Re: Website really slow
« Reply #11 on: April 19, 2016, 03:28:02 pm »
I suppose I could mention that I've had a few Cloud Flare "site is not responding" pages.  Only about four since this thread was started, but non-zero.

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Website really slow
« Reply #12 on: April 20, 2016, 02:05:00 pm »
As at least a temporary measure, I've doubled the size of the hard drive of the vm, and doubled the ram.  Doesn't seem to be helping much if at all, though. :/

I think maybe the databases are running slow for some reason, I'm not sure.  That's just the only thing I can figure.
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Website really slow
« Reply #13 on: April 20, 2016, 03:13:11 pm »
Well, I just can't win.  For now, the wiki is down... because reasons.  I'm really not sure.

this is the contents of the error log:

Code: [Select]
[Wed Apr 20 15:04:13 2016] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Apr 20 15:04:13 2016] [notice] Digest: generating secret for digest authentication ...
[Wed Apr 20 15:04:13 2016] [notice] Digest: done
[Wed Apr 20 15:04:13 2016] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.6.20 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips configured -- resuming normal operations
[Wed Apr 20 15:04:18 2016] [error] server reached MaxClients setting, consider raising the MaxClients setting

I think that last one is the culprit.  I checked our httpd.conf file, and found this for our settings:

Code: [Select]
<IfModule prefork.c>
StartServers       1
MinSpareServers    1
MaxSpareServers    5
ServerLimit       10
MaxClients        10
MaxRequestsPerChild  4000
</IfModule>

<IfModule worker.c>
StartServers       1
MaxClients        10
MinSpareThreads    1
MaxSpareThreads    4
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

I did some googling, and that seemed super low.  So I switched over to this:

Code: [Select]
<IfModule prefork.c>
StartServers       1
MinSpareServers    5
MaxSpareServers    10
ServerLimit       256
MaxClients        256
MaxRequestsPerChild  10000
</IfModule>

<IfModule worker.c>
StartServers       3
ServerLimit       16
MaxClients        5000
MinSpareThreads    50
MaxSpareThreads    250
ThreadsPerChild     50
MaxRequestsPerChild  10000
</IfModule>

That seemed to work!  ...kinda.

Longer wiki pages were coming up without formatting, but they were at least coming up.  The forums were maybe a tiny bit speedier, I'm not sure.  Mantis and wordpress were still slow as molasses.  But, worse, I started getting these errors on mantis whenever clicking into a ticket:

Code: [Select]
APPLICATION ERROR #400
Database connection failed. Error received from database was #1040: Too many connections.

Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.

Previous non-fatal errors occurred. Page contents follow.

SYSTEM WARNING: 'mysql_connect(): Too many connections' in '/var/www/html/arcengames.com/mantisbt/library/adodb/drivers/adodb-mysql.inc.php' line 365

And occasionally I'd get these from wordpress:

Quote
Error establishing a database connection

Well, gee.

So I tried this as my first compromise:

Quote
<IfModule prefork.c>
StartServers       1
MinSpareServers    1
MaxSpareServers    10
MaxClients        256
MaxRequestsPerChild  4000
</IfModule>

<IfModule worker.c>
StartServers       1
MaxClients        256
MinSpareThreads    1
MaxSpareThreads    40
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

That still avoided the MaxClients error, so hooray.  But... same errors on mantis and wordpress.  Still the wiki kinda-sorta working, but at least not giving me 522 and 524 errors anymore.

Grr.  Okay, so one more compromise, and we arrive at the settings we are currently on:

Code: [Select]
<IfModule prefork.c>
StartServers       1
MinSpareServers    1
MaxSpareServers    5
ServerLimit       10
MaxClients        256
MaxRequestsPerChild  4000
</IfModule>

<IfModule worker.c>
StartServers       1
MaxClients        256
MinSpareThreads    1
MaxSpareThreads    4
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

Hooray, all the main services work properly again... except, oh wait, the wiki is back to not even giving partial pages.  And that max clients error is in our error log again.

Any ideas from anyone?  This is super frustrating, and I've wasted my whole morning on it at this point. >:(
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!