Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
mysqld-nt.exe consumes most of CPU
Name: lvilledasps Date: May 22, 2008 at 15:31:33 Pacific OS: 2003 Server Web Edition S CPU/Ram: Pentium D 3.0 Ghz 2 Cores Product: Dell / No idea
Comment:
I have a webpage setup with PHP, Apache and MySQL. Lately, the process mysqld-nt.exe is almost always using the 50% of the CPU (I guess consuming one of the two cores), and the Database performance overall is quite slow.
And sometimes, a quite big query is executing and only the 50% of the CPU is being used and I think that it should use all the available resources to make the querys faster.
Is there anything I can do to improve this situation?
I tried to "Optimize" all the DB, and "Repair" some of the tables that are quite big.
Name: foxyshadis Date: June 16, 2008 at 15:40:53 Pacific
Reply:
You're just going to have to learn how to use SQL better and fix your queries. If you want good targeted help, you'll need to explain the layout of the database and show us your sql queries and stored procedures. One of the best places to start is the optimization chapter in MySQL's manual; beyond that you'll need a good book on SQL, database design, optimization, and integration. You will likely need to change your PHP to use the database better - most PHP sites are pretty naively coded.
Things you can do without the mental effort: Update mysql to 5.0 or 5.1. Update to the alpha 6.0 for multithreading (but beware of alpha crashes!). Upgrade your CPU to a core2. Switch to a faster database engine, like postgresql, which is long since multithreaded.
Summary: Hi Sen, It's a big mess. I can't touch the rdbm but, I need to automate the process (solved now by M2 in another question: <a href="http://www.computing.net/answers/programming/batch-file-to-ren...
Summary: Just did a search on Access 2003 and found several sites that are selling it for over $600. Why is so expensive to compared to Access 2007, which is selling for around $189? Seems a bit odd. Larry Of ...
Summary: Depends on the forum interface in question. Most of them have some sort of "field changed" event you could use to run a query and fill the fields. ...