- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: System load increased due to error query on DB
Operating System - Linux
1752754
Members
5027
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2007 02:07 AM
тАО05-15-2007 02:07 AM
System load increased due to error query on DB
Hi guys,
I have a query regarding system resources. I recently discover that my load on my system is very high. This is caused by user making accidentally making very big query on my system mysql service and thereafter their connection are broken thus this query remain as zombi. Should this be prevented by editing mysql query set on the webpage or write a script to kill detect and kill those zombi?
Hope that you can help
Regards
Henry
I have a query regarding system resources. I recently discover that my load on my system is very high. This is caused by user making accidentally making very big query on my system mysql service and thereafter their connection are broken thus this query remain as zombi. Should this be prevented by editing mysql query set on the webpage or write a script to kill detect and kill those zombi?
Hope that you can help
Regards
Henry
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2007 02:41 AM
тАО05-15-2007 02:41 AM
Re: System load increased due to error query on DB
Shalom,
The connection should not terminate. You might want to update your system and see if mysql patches help.
More likely this is a user education issue. They need to properly terminate their sessions on mysql and stop writing system killing queries.
SEP
The connection should not terminate. You might want to update your system and see if mysql patches help.
More likely this is a user education issue. They need to properly terminate their sessions on mysql and stop writing system killing queries.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2007 06:42 PM
тАО05-15-2007 06:42 PM
Re: System load increased due to error query on DB
You can just write a script for killing long-running queries - for example, >3 minutes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2007 04:00 PM
тАО05-16-2007 04:00 PM
Re: System load increased due to error query on DB
If a user purposely drops out of a CLI session, or a network failure of some sort occurs, then query will continue to run.
They shouldn't be zombie's, they should just be queries-that-close-when-they-finish.
Using 'mysqladmin processlist' will help you pinpoint this, as they query time will increase, whilst other queries come and go.
Using 'mysqladmin kill' will clear the individual queries.
That being said, automating the killing off of rogue/bad queries might not be in your best interest, especially if you have some long running queries.
Do not *NOT* just 'kill -KILL' anything. You *WILL* corrupt your tables that way.
They shouldn't be zombie's, they should just be queries-that-close-when-they-finish.
Using 'mysqladmin processlist' will help you pinpoint this, as they query time will increase, whilst other queries come and go.
Using 'mysqladmin kill
That being said, automating the killing off of rogue/bad queries might not be in your best interest, especially if you have some long running queries.
Do not *NOT* just 'kill -KILL' anything. You *WILL* corrupt your tables that way.
One long-haired git at your service...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP