PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Lucifix
Regular
Regular


Joined: Mar 11, 2005
Posts: 62

PostPosted: Thu Sep 11, 2008 1:43 pm Reply with quote Back to top

I just found out that some quries in the NukeSentinel are loading quite long. Here is the query witch took 4 seconds to load:

# Query_time: 4 Lock_time: 0 Rows_sent: 1 Rows_examined: 82543
SELECT `c2c` FROM `nuke_nsnst_ip2country` WHERE `ip_lo`<='3557959793' AND `ip_hi`>='3557959793' LIMIT 0,1;

Does anyone have the same problem?
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16976
Location: Kansas

PostPosted: Thu Sep 11, 2008 11:48 pm Reply with quote Back to top

Shocked Hmmm. You might want to find another host. My results:
Query took 0.7775 sec
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
slackervaara
Worker
Worker


Joined: Aug 26, 2007
Posts: 234

PostPosted: Fri Sep 12, 2008 12:05 am Reply with quote Back to top

For me it took 0.24 sec.
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16976
Location: Kansas

PostPosted: Fri Sep 12, 2008 12:14 am Reply with quote Back to top

I should add that your results will vary due to server load and processes running at the time but 4 seconds is WAY off the curve.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Lucifix
Regular
Regular


Joined: Mar 11, 2005
Posts: 62

PostPosted: Fri Sep 12, 2008 12:15 am Reply with quote Back to top

Well if I run this query manualy query took 0.3170 sec... looks like this is happening only when there is rush on my site.

Guess this isn't the problem in table.

Thx!
View user's profile Send private message
Lucifix
Regular
Regular


Joined: Mar 11, 2005
Posts: 62

PostPosted: Fri Sep 12, 2008 12:18 am Reply with quote Back to top

hehe raven, just 1 min ahead of me Smile

Why does this query actualy do? Is it for tracking visitors?
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16976
Location: Kansas

PostPosted: Fri Sep 12, 2008 12:38 am Reply with quote Back to top

It's used to track IP countries in a couple of scripts.

Try profiling it under phpMyAdmin to see where it's hanging. My last try showed this:

Code:
Status     Time
(initialization)    0.000023
Opening tables    0.000037
System lock    0.000009
Table lock    0.000015
init    0.000011
optimizing    0.000009
statistics    0.000013
preparing    0.000012
executing    0.0000699
Sending data    0.000027
end    0.000009
query end    0.000009
freeing items    0.000014
closing tables    0.000008
removing tmp table    0.000023
closing tables    0.000012
logging slow query    0.000009

id    select_type    table    type    possible_keys    key    key_len    ref    rows    Extra
1    SIMPLE    nuke_nsnst_ip2country    range    PRIMARY    PRIMARY    4    NULL    82969    Using where
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Lucifix
Regular
Regular


Joined: Mar 11, 2005
Posts: 62

PostPosted: Fri Sep 12, 2008 4:43 am Reply with quote Back to top

I searched for profiling in phpMyAdmin but I can't find it Sad
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16976
Location: Kansas

PostPosted: Fri Sep 12, 2008 7:34 am Reply with quote Back to top

Profiling was added in v2.11.0.0 (2007-08-21)

In phpMyAdmin
1. Select your database
2. Select the SQL tab
3. Submit your query
4. The result screen should have a Profiling checkbox

Image

5. Check it
6. Resubmit your query
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Lucifix
Regular
Regular


Joined: Mar 11, 2005
Posts: 62

PostPosted: Fri Sep 12, 2008 9:40 am Reply with quote Back to top

Thx for explaining me raven, but I have phpMyAdmin version 2.11.6 but i don't see any profiling. I'll check in which version profiling is integrated.
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16976
Location: Kansas

PostPosted: Fri Sep 12, 2008 10:26 am Reply with quote Back to top

It was added in v2.11.0.0 (2007-08-21). You may have to activate it; I don't remember.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Lucifix
Regular
Regular


Joined: Mar 11, 2005
Posts: 62

PostPosted: Fri Sep 12, 2008 10:52 am Reply with quote Back to top

I'm checking in config.default.php file in includes libraries of phpmyadmin and don't know if this code enables profiling. Are you so kind and check your settings?

These are mine:
Code:
/*******************************************************************************
 * Developers ONLY!
 * To use the following, please install the DBG extension from http://dd.cron.ru/dbg/
 *
 * @global array $cfg['DBG']
 */
$cfg['DBG'] = array();

/**
 * Make the DBG stuff available
 *
 * @global boolean $cfg['DBG']['enable']
 */
$cfg['DBG']['enable'] = false;
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum