Results 1 to 8 of 8

Thread: Server Question

  1. #1

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236

    Unhappy Server Question

    My server has recently been getting more and more hits and I have noticed that there is maybe one or two times a day that it gets heavily loaded and shoots me an email telling me so. I'm not sure how to trouble shoot this. Are my scripts too complex for the amount of users I am getting and could that be overloading my CPU? For those cobalt RaQ users, when I go to the site administrator under active monitor the CPU is in red to help you understand whats going on. Any feedback will help, thanks.

  2. #2
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    Hi,

    Whats the server specs?
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

  3. #3

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236
    http://store.sun.com/catalog/doc/Bro...html?cid=60310

    Its the extra large one. I dont think I got many more bells and whistles, but I might have. But its basically that configuration.

  4. #4
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    Well, the specs are good enough. How many users are you getting when it causes problems?
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

  5. #5

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236
    I'm not sure, I have counters set up when people enter our members section, not the main page... and in a span of 15 minutes we only get about 20-25 people browsing around.

  6. #6

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236
    Hmmm, I think I know what it is. I used the top command and watched as the people cobbled up like 18% of the CPU with calls to the mysql database. I investigated further to find that one of my tables is around 60,000 records.

    Now, I read about adding indexes to your tables can make them more effecient, but I'm not quite sure how to do it/how it works. Can anybody help me out?

  7. #7
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    You need to look at your SQL scripts to see what fields you do the most searching and sorting on, and put indexes on those. Does MySQL automatically index primary keys like MS SQL does?
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  8. #8

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236
    yeah I did that when I set up the tables but the foreign keys aren't indexed. I guess I could look into indexing the foreign keys

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width