Raised This Month: $ Target: $400
 0% 

Extremely High CPU Usage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PAL-18
AlliedModders Donor
Join Date: Jul 2010
Old 01-26-2014 , 14:02   Extremely High CPU Usage
Reply With Quote #1

When the ban list page (index.php?p=banlist) is displayed, mysqld uses 100% cpu and the page takes 22 seconds to finish loading.

I have 2837 bans with 30 bans displayed per page. The database is MyISAM. Any idea how i can fix this without changing to InnoDB?
PAL-18 is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 01-26-2014 , 16:04   Re: Extremely High CPU Usage
Reply With Quote #2

which php extension is it using? mysql or mysqli?
WildCard65 is offline
PAL-18
AlliedModders Donor
Join Date: Jul 2010
Old 01-26-2014 , 17:28   Re: Extremely High CPU Usage
Reply With Quote #3

The current version of Sourcebans uses mysql but i found a post by someone else explaining how to change it to mysqli. It does it to both of them.

It only happens when the bans are read. Oddly, this issue only started happening after i imported the banned_user.cfg files from my Gmod servers.

Last edited by PAL-18; 01-26-2014 at 17:30.
PAL-18 is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 01-26-2014 , 18:24   Re: Extremely High CPU Usage
Reply With Quote #4

Quote:
Originally Posted by PAL-18 View Post
The current version of Sourcebans uses mysql but i found a post by someone else explaining how to change it to mysqli. It does it to both of them.

It only happens when the bans are read. Oddly, this issue only started happening after i imported the banned_user.cfg files from my Gmod servers.
actually, I recommend you get rev 160 for latest bug fixes and it uses mysqli(if you got latest php you will get warnings with rev 160)
WildCard65 is offline
PAL-18
AlliedModders Donor
Join Date: Jul 2010
Old 01-26-2014 , 19:17   Re: Extremely High CPU Usage
Reply With Quote #5

Thanks, where can i download revision 160?

Last edited by PAL-18; 01-26-2014 at 19:17.
PAL-18 is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 01-26-2014 , 20:31   Re: Extremely High CPU Usage
Reply With Quote #6

on thread for 14.10, there's a link to the download page, on there click browse and follow instructions.
WildCard65 is offline
PAL-18
AlliedModders Donor
Join Date: Jul 2010
Old 01-26-2014 , 20:46   Re: Extremely High CPU Usage
Reply With Quote #7

All im finding is https://code.google.com/p/sourcebans/downloads/list
PAL-18 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-27-2014 , 07:47   Re: Extremely High CPU Usage
Reply With Quote #8

WildCard65 is telling you to use the SVN/Beta version (not 2.0), not the Release version.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 01-27-2014 , 08:44   Re: Extremely High CPU Usage
Reply With Quote #9

Google Code does not provide ZIP files for Subversion hosting, so you'll have to install Subversion and run
Code:
svn checkout http://sourcebans.googlecode.com/svn/trunk/ sourcebans-r160
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 01-27-2014 , 10:06   Re: Extremely High CPU Usage
Reply With Quote #10

Quote:
Originally Posted by YamiKaitou View Post
WildCard65 is telling you to use the SVN/Beta version (not 2.0), not the Release version.
Yami, there is bug fixes that the zip release doesn't include.
WildCard65 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode