Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
3 registered (Gizmo, zackfrost, Dunny), 29 Guests and 13 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/08/06
Posts: 1437
Top Posters (30 Days)
Ruben 65
SD 57
Gizmo 53
gliderdad 32
Iann128 22
Dunny 21
Steve C 20
driv 18
dbremer 16
Stan 15
Latest Photos
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Gizzo Marx
Page 1 of 6 1 2 3 4 5 6 >
Topic Options
#173440 - 01/14/07 12:25 AM Server Crashing
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
I have a dedicated server which only does two things - runs the UBB forum and runs MailEnable mail software. MailEnable is running very smoothly and in the MailEnable world we're a relatively small install for them, only 400 or so boxes. On the UBB side we have 25,000 members and 400 forums, which I believe makes us one of the largest Windows installs.

http://forum.bellaonline.com/ubbthreads.php

Our server kept crashing in 2006 until we had a total system failure in the fall. We rebuilt the server and hoped we could hobble through until this new version came out. It has been crashing every few days in the past few weeks. We did the upgrade last week even though I had concerns about the content island issues, in hopes of getting the crashing to stop. Unfortunately the server's still crashing, it was down for 3 hours yesterday morning.

We have a gig of RAM and oodles of disk space. The server is usually only 20% busy so it's not maxing out the processor.

Any thoughts on any tuning we can try, to help this to run more smoothly? I do need the forums to all have content islands, but I have them set to generate only every 30 minutes to try to keep things relatively stress free ...

The server event logs never show anything amiss before the crashes.
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#173442 - 01/14/07 12:31 AM Re: Server Crashing [Re: BellaOnline]
ntdoc Offline
Registered: 11/09/06
Posts: 3382
When you say crashes do you mean UBBT stops responding or hangs? Or do you mean Windows hangs or quits responding or is it blue screening?

What version of Windows are you running?
What version of PHP and MySQL are you running?
Top
#173449 - 01/14/07 02:09 AM Re: Server Crashing [Re: ntdoc]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14904
Loc: Portland, OR; USA
It could also be hardware issues if you're that popular things may not be able to be written to disk properly; are you using a standard 7200rpm ide disk?
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#173450 - 01/14/07 02:09 AM Re: Server Crashing [Re: ntdoc]
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
I remote terminal into the server at its hosting facility, so what I see is that the machine no longer responds to pings, no longer displays any web pages and no longer answers remote terminal requests. The techs have to reboot it to get it responsive again.

The server's running Windows 2000, sp4, 5.00.2195

PHP is 5.1.1

MySQL is 4.1.16
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
#173452 - 01/14/07 02:11 AM Re: Server Crashing [Re: BellaOnline]
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
When the server completely went down last fall (which happened when I was on a trip to Ukraine, I had to rebuild the server dialing in from a hotel in Lviv) they replaced the hard drive, in case that was the issue. The server has two hard drives - one for the OS, and one for the websites. I'm asking them to put in a third hard drive to handle the log files. I found on my other servers that providing a hard drive just for log file writing helped things go more smoothly.
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
#173454 - 01/14/07 02:15 AM Re: Server Crashing [Re: BellaOnline]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14904
Loc: Portland, OR; USA
Are they IDE or SATA or SCSI? If you can afford it I'd go with faster SATA or SCSI disks (7200rpm, 10k rpm, 15k rpm); if the disks are turning out to be the issues it would likely be a resources issue on the machine with writing to disk (it's also prudent to let you know that even writing to MySQL writes to your hard disk, as mysql files are stored as flat files in the end).
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#173460 - 01/14/07 02:49 AM Re: Server Crashing [Re: Gizmo]
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
Well yes writing to any database causes disk access \:\) I know that. I will chat with my hosting company to get the details on the disk types.
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
#173464 - 01/14/07 04:24 AM Re: Server Crashing [Re: BellaOnline]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14904
Loc: Portland, OR; USA
Sorry, I've gotten in the habbit of providing way too much information in my inqueries; you never know when someone will stumble in with the same issues in the future ;)...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#173466 - 01/14/07 04:32 AM Re: Server Crashing [Re: BellaOnline]
ntdoc Offline
Registered: 11/09/06
Posts: 3382
Well you probably get no choice but Server 2003 implements a completely different IO scheme and is much better at handling memory and disk IO. As for disk speed 15K SCSI drives on a GOOD RAID controller is going to beat out the SATA drives.

That does not explain though what is causing it to hang and not respond. Slow writes should show up in event viewer as an error.

Enable event logging and it may give you more details.

And this is a stand alone server, not a VPS correct ?

When I'm on your site and it's running fine it seems to be okay speed wise so that leads me to think something else is going on and hanging the system. Maybe it is a hardware issue that locks it up and nothing to do with software.

What type of access do you have to the system when it's running normally? Can you run all the normal Windows tools and get to all the diagnostic tools?
.
Top
#173469 - 01/14/07 04:37 AM Re: Server Crashing [Re: ntdoc]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14904
Loc: Portland, OR; USA
I agree on a good raid controller and a 15k scsi beating the hell out of ide or sata, I'm just afraid that her host is running her on a standard ide/ata versus something more "modern" for the "ideal" setup...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#173472 - 01/14/07 04:45 AM Re: Server Crashing [Re: Gizmo]
ntdoc Offline
Registered: 11/09/06
Posts: 3382
Oh I know the host provider isn't running a SCSI system for them as it's TOOOO expensive to build AND maintain. They all put in cheap stuff to get the most bang for the buck.

But if you co-locate or are allowed to build your own then it would be better to have the SCSI setup.
For SATA something like this is much better than what comes on the motherboards:
AMCC 3Ware 9650SE
http://www.3ware.com/products/serial_ata2-9650.asp


Hey I speced out a server for work to handle 5,000 transactions a day and it was not cheap. HP was about $37K and dell was about $25K not including the fail over system which is smaller and cheaper. Awesome system though.

.
Top
#173481 - 01/14/07 05:01 AM Re: Server Crashing [Re: ntdoc]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14904
Loc: Portland, OR; USA
Man I looked up that card, $230-$910 on NewEgg; it looks sweet but man, it's not cheap hehe...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#173484 - 01/14/07 05:04 AM Re: Server Crashing [Re: Gizmo]
ntdoc Offline
Registered: 11/09/06
Posts: 3382
No it's not cheap but has better specs/speed than Promise and others. I would still rather have an HP DL380 G5 with their RAID controller
Top
#173485 - 01/14/07 05:05 AM Re: Server Crashing [Re: ntdoc]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14904
Loc: Portland, OR; USA
I think i've met my equivelant geek on a server area lol...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#173494 - 01/14/07 05:29 AM Re: Server Crashing [Re: BellaOnline]
Maze Offline

enthusiast
Registered: 06/05/06
Posts: 245
Loc: Berlin
 Originally Posted By: BellaOnline
[...] On the UBB side we have 25,000 members and 400 forums, which I believe makes us one of the largest Windows installs.
[...]
We have a gig of RAM and oodles of disk space. The server is usually only 20% busy so it's not maxing out the processor.

A single gig of RAM for such a huge site . If you are sure the reason for crashing is not a hardware failure or such, the first thing I would do is to add more RAM. Configure MySQL to hold all indexes into RAM to relieve hd load.
_________________________
##eek##
Top
#173504 - 01/14/07 11:42 AM Re: Server Crashing [Re: Maze]
Ian Spence Offline
Registered: 06/04/06
Posts: 255
Well something is wrong with your forums, your ubb=online page is doing 41 queries every single time it's viewed, which leads me to believe it's rebuilding the cache every time that page is viewed. That could easily bring down a server. I don't know exactly what could cause that, but will let Rick work with my observation
Top
#173544 - 01/14/07 06:41 PM Re: Server Crashing [Re: Ian Spence]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14904
Loc: Portland, OR; USA
Offhand I'd say to check the portal page module cache and ensure things are set to 15minutes or so (at least 5); I'd highly advise against using a low number on such a large forum...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#173584 - 01/14/07 11:59 PM Re: Server Crashing [Re: Gizmo]
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
The disks are 7200RPM SATA drives. I will ask about faster disks.

This is a dedicated machine that is solely mine. The three standard event logs do not show any problems before the crash. I remote terminal into the machine so I can do whatever I want to it. I manage it and install the software myself. Normally it runs at very low processor usage and reasonable memory usage. When it crashes, I can't log in of course \:\) Then when it reboots everything seems fine and the log files don't report any problems before the crash. So it's been very hard to troubleshoot this. We had hoped it was a hardware issue with the previous disk, but apparently that was not the case.
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
#173585 - 01/15/07 12:01 AM Re: Server Crashing [Re: Maze]
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
 Quote:
A single gig of RAM for such a huge site . If you are sure the reason for crashing is not a hardware failure or such, the first thing I would do is to add more RAM. Configure MySQL to hold all indexes into RAM to relieve hd load.


Actually I just looked at the task manager to check, it's barely using half the RAM. That has never seemed an issue to me. If I go the route of tossing all indices into RAM, would that really take up the other 500mb?
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
#173589 - 01/15/07 01:58 AM Re: Server Crashing [Re: BellaOnline]
ntdoc Offline
Registered: 11/09/06
Posts: 3382
Here are some links to help you diagnose problems.

You may have to start and run a long term performance log to see if it can track down an issue.

Hopefully something here helps you to track down the issue.

Microsoft Ž Windows Server ™ 2003 Performance Advisor
http://www.microsoft.com/downloads/detai...&DisplayLang=en

Windows Server 2003 Performance Counters Reference
http://technet2.microsoft.com/WindowsSer...3.mspx?mfr=true

Introduction to Windows Support Tools
http://technet2.microsoft.com/WindowsSer...3.mspx?mfr=true

Windows Server 2003 Service Pack 1 Administration Tools Pack
http://www.microsoft.com/downloads/detai...&displaylang=en

Windows Server 2003 Resource Kit Tools
http://www.microsoft.com/downloads/detai...&displaylang=en

Windows Server 2003 Service Pack 1 32-bit Support Tools
http://www.microsoft.com/downloads/detai...&displaylang=en

Internet Information Services (IIS) 6.0 Resource Kit Tools
http://www.microsoft.com/downloads/detai...&displaylang=en
Top
#173590 - 01/15/07 03:13 AM Re: Server Crashing [Re: ntdoc]
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
With my server running Windows 2000, I feel uncomfortable downloading Windows 2003 resources onto it ...
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
#173592 - 01/15/07 05:22 AM Re: Server Crashing [Re: BellaOnline]
ntdoc Offline
Registered: 11/09/06
Posts: 3382
Okay my mistake. Similar tools but I'll look them up for you tomorrow.

 Quote:
The server's running Windows 2000, sp4, 5.00.2195

PHP is 5.1.1

MySQL is 4.1.16



Edited by ntdoc (01/15/07 05:24 AM)
Top
#173593 - 01/15/07 05:34 AM Re: Server Crashing [Re: ntdoc]
ntdoc Offline
Registered: 11/09/06
Posts: 3382
Does it have all the up to date recent Critical updates installed ?

.
Top
#173605 - 01/15/07 07:54 AM Re: Server Crashing [Re: ntdoc]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14904
Loc: Portland, OR; USA
I've always found that using windows update leads to an unstable system ;)... Think of it, all these new fangled utilities being listed as critical is worthles... I say you decide on your own what you want to install ;\)
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#173634 - 01/15/07 02:02 PM Re: Server Crashing [Re: Gizmo]
ntdoc Offline
Registered: 11/09/06
Posts: 3382
Gizmo that is not true - Yes it was very problematic years ago, but now days it is pretty rock solid (imho) Yes on occasion there are issues but often only due to some specific setting or other software you have installed. I've managed very large sites and smaller sites as well and all of them work fine with Microsoft critical updates. Microsoft is also available for free to repair your issue if the critical update did break it.

Granted many of the updates are not quite as "critical" as some would want to believe but still 99% of the time you will not have an issue with an update (imho). Which is still better than most companies out there that provide updates.

.
Top
#173642 - 01/15/07 03:21 PM Re: Server Crashing [Re: BellaOnline]
Maze Offline

enthusiast
Registered: 06/05/06
Posts: 245
Loc: Berlin
 Originally Posted By: BellaOnline
 Quote:
A single gig of RAM for such a huge site . If you are sure the reason for crashing is not a hardware failure or such, the first thing I would do is to add more RAM. Configure MySQL to hold all indexes into RAM to relieve hd load.


Actually I just looked at the task manager to check, it's barely using half the RAM. That has never seemed an issue to me. If I go the route of tossing all indices into RAM, would that really take up the other 500mb?

You can easily check that by looking into the directory where your MySQL db-files reside. Add up the size of all the *.MYI files. If you have unused RAM, you really should make use of it.
_________________________
##eek##
Top
#173708 - 01/15/07 07:21 PM Re: Server Crashing [Re: Maze]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14904
Loc: Portland, OR; USA
NT, do a fresh install of XP Pro and do no updates, let it run for 2 weeks and monitor your resource usage.

Now, install windows updates, all of them like any standard sheep would do... And now monitor your resource usage.

Your resource usage (on the bare system, running no extra utilities) will run like crap compared to the fresh system, with only Windows Updates installed.

So yes, it is true; the windows updates "new fangled utilties" that come as standard updates are a complete drain on your machine; it's quite discusting and makes baby jesus want to cry...

I haven't done this in several years, but it's been the same for several versions of Windows; it's sad when you can't even trust the provider to do something as simple as provide reliable updates to their software lol...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#173733 - 01/15/07 08:28 PM Re: Server Crashing [Re: Gizmo]
David Dreezer Offline

Pooh-Bah
Registered: 07/21/06
Posts: 2199
In general only 1 gig of RAM is pretty light for as large an installation as you have. If you're only using but half of that gig you're not doing your server or it's discs a favor.

All of that extra unused RAM could and should be used for database caching. More memory cache less disc access.

As for why your machine becomes unresponsive we likely cannot tell you unless we're there to see it, but experience can be helpful. Here's the most common scenario that I've seen -

Machine is either low on resources or isn't using them well but hums along just fine until something is done that brings it close to the edge of it's limits. Maybe it's a bunch of searches all at the same time, maybe it's a huge cache rebuild that occurs while a search is being run. Whatever the exact cause, it was a combination of things that brought a machine close to it's max out put.

Now the machine is slowed and requests start to back up. Perhaps it's disc IO that is the culprit. memory use while the machine is backing up still looks fine. Load, while rising isn't huge. That's because the discs are so backed up nothing is being processed. Load is climbing though because of the number of processes that are waiting for disc.

Doesn't take but a few seconds in that state to get a locked up server. Nothing is going to fix it now except a reboot.

Do I know if that is what happened to your machine? No. But I wouldn't be surprised at all. I see it every day. You've got a gig of RAM, which is light for your volume, and only half of that is in use. Just think how much better the thing would run if it was making efficient use of the entire gig of RAM?

Go here and read the tuning tutorials. A gig likely isn't enough for your traffic by why have a gig of RAM if you're only using half? Get that machine making more efficient use of your RAM and it will help.

Of course, I'm taking your word that it is only using half the gig. That in itself sounds kinda fishy to me. Do yourself a favor and verify that again before you make any changes to your MySQL.
_________________________
This thread for sale. Click here!
Top
#173735 - 01/15/07 08:33 PM Re: Server Crashing [Re: David Dreezer]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14904
Loc: Portland, OR; USA
I was hoping someone with more windows hosting experience would happen over this threads; and in comes the mac user ;)...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#173761 - 01/15/07 11:21 PM Re: Server Crashing [Re: Maze]
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
"You can easily check that by looking into the directory where your MySQL db-files reside. Add up the size of all the *.MYI files. If you have unused RAM, you really should make use of it. "

I most definitely know I have half the RAM unused.

We do not have MYI files. We are running InnoDB.
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
#174846 - 01/21/07 12:12 PM Re: Server Crashing [Re: BellaOnline]
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
An update, the server crashed Friday night. They rebooted it Saturday morning. It crashed again Saturday night, and they rebooted it Sunday morning. On Monday they are going to add in a third hard drive to handle all the log files, to see if that helps.

Intriguingly, MailEnable (the only other application on this server) reported errors during the crash time period. It says -

-----------

21 Jan 2007 00:07:05 MailEnable MailEnable Database Provider error: 0,FAILURE: (SELECT ID,Mode,AddressMask,Status,Account,AccessRight FROM SMTP_ACCESS WHERE ((Mode = 1) AND ((AddressMask = '64.*.*.*') OR (AddressMask = '64.74.*.*') OR (AddressMask = '64.74.173.*') OR (AddressMask = '64.74.173.203')) AND (AccessRight = 'CONNECT') AND ID > 0) ORDER BY ID LIMIT 1;), Module: MESMTPC.EXE; Error: [MySQL][ODBC 3.51 Driver][mysqld-4.1.16-nt]MySQL server has gone away

21 Jan 2007 08:33:55 MailEnable MailEnable Database Provider error: 0,FAILURE: (SELECT ID,Name,Status,Account FROM POSTOFFICE ORDER BY Name;), Module: MERADMS.exe; Error: [MySQL][ODBC 3.51 Driver][mysqld-4.1.16-nt]MySQL server has gone away

-----------

So where did MySQL go? \:\)
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
#174849 - 01/21/07 12:40 PM Re: Server Crashing [Re: BellaOnline]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
silly question - but as it is at night - is it crashing during a backup procedure?
Top
#174876 - 01/21/07 04:45 PM Re: Server Crashing [Re: Ian]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14904
Loc: Portland, OR; USA
Dumb question; how big are the log files? If they're over 2gb they could be causing crashing...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#174999 - 01/22/07 01:48 PM Re: Server Crashing [Re: Gizmo]
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
OK I take back my other innodb comment - it looks like the UBB install overrode my defaults and made all the MYI files and such.

I do still have an ib_logfile0 but it's only 51mb.

I don't have any automated backups running on this server, I am trying to keep activity to a minimum so I can track down what the issue is.

I did just download the MySQL admin tools and will be turning on logging.

If you meant the webserver log files, no those aren't over a gig.
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
#175056 - 01/22/07 07:02 PM Re: Server Crashing [Re: BellaOnline]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14904
Loc: Portland, OR; USA
I meant any server logfiles that could be associated with apache/php/any web scripts; but it's good none are that big, so that tosses that idea out of the window.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#175093 - 01/22/07 07:49 PM Re: Server Crashing [Re: Gizmo]
David Dreezer Offline

Pooh-Bah
Registered: 07/21/06
Posts: 2199
"MySQL server has gone away"

"MySQL server has gone away"


MySQL is crashing. Again, you have a very very large installation, only one gig of RAM, only half of which is in use by the entire server, including operating system, web server and MySQL. It really is no surprise that MySQL and the server are crashing. There are not adequate resources.

Take the time to read the topics that I pointed to, tune your MySQL so that it can be at least somewhat efficient.

Start from there. Your posts only reinforce what we already suspect to be true. It's not going to fix itself. Throwing more RAM into your machine will do not a thing if the server doesn't use it either. You need to tune your MySQL and at least make use of the ram you have.
_________________________
This thread for sale. Click here!
Top
#175668 - 01/26/07 01:30 PM Re: Server Crashing [Re: David Dreezer]
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
But again, there is plenty of RAM free. I'm running the SQL Administrator and it says the server is only being 5% used. All the cache hits seem great. Here are my settings - what do you think is set incorrectly?

I'm a database designer and have done a ton of work with MS-SQL, Oracle etc - this forum system really isn't that big at all ...

---------------

# The maximum amount of concurrent sessions the MySQL server will
# allow. One of these connections will be reserved for a user with
# SUPER privileges to allow the administrator to login even if the
# connection limit has been reached.
max_connections=800

# Query cache is used to cache SELECT results and later return them
# without actual executing the same query once again. Having the query
# cache enabled may result in significant speed improvements, if your
# have a lot of identical queries and rarely changing tables. See the
# "Qcache_lowmem_prunes" status variable to check if the current value
# is high enough for your load.
# Note: In case your tables change very often or if your queries are
# textually different every time, the query cache may result in a
# slowdown instead of a performance improvement.
query_cache_size=33M

# The number of open tables for all threads. Increasing this value
# increases the number of file descriptors that mysqld requires.
# Therefore you have to make sure to set the amount of open files
# allowed to at least 4096 in the variable "open-files-limit" in
# section [mysqld_safe]
table_cache=1520

# Maximum size for internal (in-memory) temporary tables. If a table
# grows larger than this value, it is automatically converted to disk
# based table This limitation is for a single table. There can be many
# of them.
tmp_table_size=16M


# How many threads we should keep in a cache for reuse. When a client
# disconnects, the client's threads are put in the cache if there aren't
# more than thread_cache_size threads from before. This greatly reduces
# the amount of thread creations needed if you have a lot of new
# connections. (Normally this doesn't give a notable performance
# improvement if you have a good thread implementation.)
thread_cache_size=38

#*** MyISAM Specific options

# The maximum size of the temporary file MySQL is allowed to use while
# recreating the index (during REPAIR, ALTER TABLE or LOAD DATA INFILE.
# If the file-size would be bigger than this, the index will be created
# through the key cache (which is slower).
myisam_max_sort_file_size=100G

# If the temporary file used for fast index creation would be bigger
# than using the key cache by the amount specified here, then prefer the
# key cache method. This is mainly used to force long character keys in
# large tables to use the slower key cache method to create the index.
myisam_max_extra_sort_file_size=100G

# If the temporary file used for fast index creation would be bigger
# than using the key cache by the amount specified here, then prefer the
# key cache method. This is mainly used to force long character keys in
# large tables to use the slower key cache method to create the index.
myisam_sort_buffer_size=64M

# Size of the Key Buffer, used to cache index blocks for MyISAM tables.
# Do not set it larger than 30% of your available memory, as some memory
# is also required by the OS to cache rows. Even if you're not using
# MyISAM tables, you should still set it to 8-64M as it will also be
# used for internal temporary disk tables.
key_buffer_size=256M

# Size of the buffer used for doing full table scans of MyISAM tables.
# Allocated per thread, if a full scan is needed.
read_buffer_size=1M
read_rnd_buffer_size=4M

# This buffer is allocated when MySQL needs to rebuild the index in
# REPAIR, OPTIMZE, ALTER table statements as well as in LOAD DATA INFILE
# into an empty table. It is allocated per thread so be careful with
# large settings.
sort_buffer_size=4M

key_buffer = 256M
max_allowed_packet = 1M
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
#175669 - 01/26/07 01:33 PM Re: Server Crashing [Re: BellaOnline]
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
And also for example during this week the server ran flawlessly Mon - Thu, then crashed twice on Thu and twice on Fri with no increase in traffic. It really doesn't point to some sort of SQL setting being wrong. It points to something in particular that the forum is trying to do choking it.
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
#175670 - 01/26/07 01:38 PM Re: Server Crashing [Re: BellaOnline]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Well, what is strange that it was crashing before the upgrade as well. The difference in the design of your prior version and version 7 are completely different, and the fact that it was crashing then and crashing now even with all the changes leads me to believe there is some underlying factor.

Are you running the latest MySQL version? If not then you could look at upgrading MySQL.
Top
#175679 - 01/26/07 02:08 PM Re: Server Crashing [Re: BellaOnline]
ntdoc Offline
Registered: 11/09/06
Posts: 3382
Bella you probably need to do some long term logged performance analysis on the system. This should leave a trace of the cause even if it were to blue screen as it would still keep the log up to that time.
Top
#175715 - 01/26/07 04:01 PM Re: Server Crashing [Re: Rick]
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
I'd have to go back through my notes but I thought there was a reason I was on 4.1. Wasn't it UBB that didn't support the new version, 5.0? Or is that limitation gone with this new release of software? If so I'll gladly update to 5.0 and see if that helps ...

The old version had *all* sorts of problems - content islands got stuck daily, the forums ran really slowly, etc. So that was just sick in general. The new version is generating content islands fine, it runs quickly, so we're just down to it crashing occasionally \:\) Since crashing is such a generic "something has failed" thing, I'm not sure we can really compare them against each other yet.
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
#175719 - 01/26/07 04:09 PM Re: Server Crashing [Re: BellaOnline]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Yes, with the latest version you can run on version 4 or version 5, so I'd definitely try a MySQL upgrade if possible.
Top
#175746 - 01/26/07 07:43 PM Re: Server Crashing [Re: Rick]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14904
Loc: Portland, OR; USA
MySQL5/PHP5 ftw!
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#175755 - 01/26/07 07:53 PM Re: Server Crashing [Re: Gizmo]
Mark S Offline
Carpal Tunnel
Registered: 07/04/06
Posts: 4447
Loc: Liverpool : England : UK
ftw ?? What's that mean?
_________________________
Version v7.5.6 smile smile < Threads satisfaction status
People who inspire me Rick Gizmo Ian David jgeoff ntdoc
Oooo i hear 8 is coming? just after 7 my friend.
Top
#175760 - 01/26/07 08:06 PM Re: Server Crashing [Re: Mark S]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14904
Loc: Portland, OR; USA
FTW == For the Win
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#175761 - 01/26/07 08:08 PM Re: Server Crashing [Re: Gizmo]
gliderdad Offline
Registered: 06/08/06
Posts: 1437
Loc: NY
LOL, I have a different meaning \:o
Top
#175763 - 01/26/07 08:10 PM Re: Server Crashing [Re: gliderdad]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14904
Loc: Portland, OR; USA
Let me guess, "f___ the world" (like on the 1970's prison tattoo's)?
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#175764 - 01/26/07 08:11 PM Re: Server Crashing [Re: Gizmo]
gliderdad Offline
Registered: 06/08/06
Posts: 1437
Loc: NY
Yup
Top
#175771 - 01/26/07 08:42 PM Re: Server Crashing [Re: gliderdad]
Mark S Offline
Carpal Tunnel
Registered: 07/04/06
Posts: 4447
Loc: Liverpool : England : UK
Free the Win ??

Sorry this is about servers crashing and pretty serious too.
Hope you get it sorted with the upgrades.
_________________________
Version v7.5.6 smile smile < Threads satisfaction status
People who inspire me Rick Gizmo Ian David jgeoff ntdoc
Oooo i hear 8 is coming? just after 7 my friend.
Top
#175773 - 01/26/07 08:46 PM Re: Server Crashing [Re: Mark S]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14904
Loc: Portland, OR; USA
For the win, see the gameshow "hollywood squares"
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#175794 - 01/27/07 02:07 AM Re: Server Crashing [Re: Gizmo]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
I would upgrade to MySQL5 - but I am not 100% confident that all software will run on it - some can be a little funny as to the version.
Top
#175797 - 01/27/07 02:17 AM Re: Server Crashing [Re: Ian]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14904
Loc: Portland, OR; USA
i've had no real compat problems with MySQL5; it's PHP5 that can be the stickler; mainly becasue of people not coding for register globals being off...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
Page 1 of 6 1 2 3 4 5 6 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
A positive note
by SteveS
Yesterday at 09:36 PM
How to locate links to particular site if they are only used in images?
by Conrad
02/10/12 09:41 PM
Pictures not displaying
by Marker23
02/09/12 10:04 PM
Issue with logging out constantly
by Flanuva
02/09/12 07:05 PM
Long thread, UBB code not parsing
by Bad Frog
02/09/12 07:47 AM
Forum Stats
10211 Members
36 Forums
33666 Topics
180902 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image