-
Notifications
You must be signed in to change notification settings - Fork 842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
high CPU #2017
Comments
Please provide more details. |
i have an italian hope this is the right dump, it seems that on a certain sequence i can reproduce hang Sample: https://gist.github.com/dmoagx/e1b96139895f05964371 (Note: link replaced by dmoagx) if i past the output it says that is too big for comment |
i would point that high CPU happens when i open a small DB with 11 tables the hang seems to happen when i select only one of this tables, not sure if this is related, on this table i duplicate a text field within sequel pro table has 20 fields, 6 text field |
I can also get the CPU to spike at 98% -- by altering a table. For a db with 367 tables, I use the UI to alter a single table VARCHAR column from 255 to 40 chars. This happens nearly every time i make a schema alteration with the UI. This behavior was frequent on OSX 10.8, and is now consistent on OSX 10.10 |
Please include the process sample as I have explained in my first comment! |
I've experienced the same problem with the latest version on OS X 10.10.1. Things worked fine until I added a few new integer columns to a table mostly consisting of integer columns. As soon as I select the problematic table in question Sequel Pro starts taking 100% CPU and become very sluggish. @dmoagx Below are links to samples, a spindump and the table definition. Things worked fine until I added the Table SQL: CREATE TABLE `reports` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`entity_id` int(11) unsigned NOT NULL,
`created` date NOT NULL,
`dnssec` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'DNSSEC on zone?',
`ns_total` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'NS hostnames',
`ns_ipv4` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'NS hostnames with A records',
`ns_ipv6` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'NS hostnames with AAAA records',
`ns_dnssec` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'NS hostnames with DNSSEC',
`mx_total` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'MX hostnames',
`mx_ipv4` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'MX hostnames with A',
`mx_ipv6` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'MX hostnames with AAAA',
`mx_dnssec` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'MX hostnames with DNSSEC',
`mx_starttls` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'MX hostnames with STARTTLS support',
`web_total` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Total number of HTTP/HTTPS hostnames',
`web_ipv4` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Number of web hostnames with A records',
`web_ipv6` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Number of web hostnames with AAAA records',
`web_dnnsec` int(11) unsigned DEFAULT NULL COMMENT 'Number of web hostnames with DNSSEC',
`https` varchar(16) NOT NULL DEFAULT 'no' COMMENT 'Partial if accessible over https in addition to http',
`updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `entity_id` (`entity_id`,`created`)
-- ,CONSTRAINT `reports_ibfk_1` FOREIGN KEY (`entity_id`) REFERENCES `entities` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=1757 DEFAULT CHARSET=utf8mb4 Sample 1: Spindump 1 (expires within 24h): Sample 2: |
I'm having the same problem, 99% CPU |
So far what these reports have in common is:
That makes the issue difficult to find, esp. since I haven't yet been able to reproduce it. |
There's a particular table in my database that causes Sequel Pro to hang when switching between the Structure/Content tabs. Here is the sample: |
I have similar problems with several tables - CPU goes to 99% When I select Structure 'tab'. https://gist.github.com/alexdrag/485de934ae65e7fbed36 |
Btw I tried with stable version and with Nightly build of SequalPro. And I didn't have this problems on Mountain lion, just on Yosemite. Also I installed MySql using brew (http://brew.sh) |
I've updated SequalPro to the latest Nightly Build, and I do not have issues anymore. |
I've just had this again adding fields to a table. Sample here: https://gist.github.com/anonymous/7f58478e7da5c67fc8a0 |
Here's another sample during adding a column: Clicked the "+" button on fields list. |
I believe you, but there isn't much I can do. What we really need is some way to reliably reproduce this (I've not yet been able to personally). |
Got here because I had a similar problem, with high CPU times using Sequel Pro 1.1. The problem was the huge dumps on the query history. Clearing the query history solved the problem, and working with the dumped database (+500MB) works like a charm, again. Just in case this solves someone else's problem! |
I have the same issue, @lucascepeda how did you clear the query history ? |
@lalop Go to "Query" (icon tab) -> "Query History" (dropwdown) -> "Clear Global History". I hope that helps! |
@lucascepeda this helps a lot :) |
I'll close this. |
with 10.10 upgrade sequel pro some times gets stuck with 99% cpu usage
on this upgrade i switch from OS X system apache / mysql to MAMP pro
not sure if CPU usage is due to 10.10 or MAMP
but sequel pro get unusable i need to force exit
The text was updated successfully, but these errors were encountered: