Restarting Dynamic Zone After a Crash?
On a Windows server, if a zone crashes, it will send the message box to the server about the crash with the OK button on it. Every zone that crashes will send another box. For every zone that crashes, it won't be allowed to restart until you actually click the OK button on the box from the crash.
Since Linux doesn't popup a similar message, I was wondering if there is a way to restart crashed dynamic zones. I set 50 dynamics and 1 crashed earlier and it didn't restart. The EQEmulator Management panel lists 49 booted zones instead of 50. Does anyone know how to correct this? Maybe there is something I can add in my script to start the world server? Another thing I have noticed differently about Linux so far is that characters seem to sometimes bounce about 1 time per second if they have been standing idle for a while. I am not sure if this is some kind of zone update or what, but the closest thing I saw on windows was 1 time per minute all NPCs would bounce. Maybe something is set wrong, or is that normal? Last, I was wondering if anyone had any newer scripts for starting and stopping the world server on Linux other than the ones from PEQ in the "Yet Another Linux Guide" from the wiki. It seems like those are probably old, but maybe they are already pretty tweaked. I won't even pretend to understand them, I was just wondering if there was a more tweaked version out there or if it even matters at all. Also, if there is possibly a way to have all log files wrap after they reach a certain size, that would be awesome! I am afraid mine will start filling up my hard drive fast. From reading the scripts, I am guessing that they delete all log files after you issue the stop script for the server and start fresh ones when you start it again. But, setting a limit on the size would help a ton. Here is the start script I am currently using. Also, I am not sure if I need to change the word "test" in there to something else, but it seems to work as is I guess lol: Code:
#!/bin/sh Code:
#!/bin/sh |
Trev,
I have one that I got out of the message boards from a couple of years ago that I've been working on. I don't have it with me, but I could put it out later. I've only just started moving to Linux in the last couple of days, so I just started working on it last night. I wanna update it some to actually act like a startup script from the distro. But if you want I can post what I'm using. |
If I'm not mistaken, eqlaunch should automatically reload the zone if it crashes. At least, that has been my experience. If you manually load the zone using zone, then that's another story.
|
Sure, Andrew80k. I would love to see what you have setup. Only having 1 example makes it hard for me to understand what is happening, and what needs to be there or not.
I would be especially interested in something that wraps log files after they reach maybe 250k or so if that is at all possible. I have no need for a 500MB log file lol. Heck, I wouldn't even mind a script that turns off the log files completely. |
What the heck are these core.<number> files that are filling my hard drive? I already have a couple GB worth after less than 1 day of having the server up!
|
Quote:
Change Code:
./persist_world 2>&1 > logs/world & Code:
./persist_world 2>&1 > /dev/null & Quote:
|
Weird, I know for sure that I removed them before my compile. I followed your wiki exactly. I've gone through it 2 times now (rebuilt 2 times), and I am going to do it again soon for another PC. I just checked the source I used and -pg is definitely removed. Not sure why it makes these core files, but I don't think it is good for my server load and the amount of data growing that fast is insane. I probably had 20 100MB files in less than 1 day.
|
Apparently I'm retarded and I have no idea what I'm talking about.
However, after searching around teh Interwebs a little bit, I remembered the core.whatever files have to do with the following line in the startup script: Code:
ulimit -c 99999999 |
I may be wrong, but it seems my setup made core files after a crash. It seems they are like dump files used to debug the crash, but I could be completely wrong here, this is just a guess on my part.
I do have the unlimit -c 999999 in my startup as well, so I will remove it and see what happens.... |
Makes sense lol. Thanks AndMetal! And ya, they do show up after a crash. That normally wouldn't be a huge issue, but I was still running my zone resetters in all of my custom zones, so essentially it thought I had 20 zone crashes per day and kicked out a 100MB file each time.
I have no use for those files anyway. They are too huge for me to open them with an editor and I have no idea what I would grep for in them. I will definitely be commenting that out! Thanks guys. This info is really helping me get things setup nicely. |
Ok, looks like I am having another issue with hard drive space... For some reason it seems like my hard drive space is getting used by something I can't seem to locate the source of... The webmin tool shows my hard drive space used is up to about 10.5GBs, but when I right click on the File System folder in the File Browser, it reports only 7.2GBs used, which is what things were at before I turned the server on. It seems like every time I refresh the webmin main System Information page, it shows that my hard drive has less and less space left.
I just can't figure out where the extra data is going. I don't see any other files that could be causing it. Is there possibly files that would be outside of the File System folder? This folder includes my home directory, root, and all of the other folders that I am aware of. I have no clue where this hard drive space is going. My main concern is because I built this Linux build as a temporary place to run my server from. So, I made it a dual boot from a windows box. I didn't have a ton of hard drive space left, so I just gave it 13GBs. I figured that would be enough, and it would if I wasn't running into these weird issues eating up my space lol. I will be moving it back to the server PC with 30GBs soon, but even then I will want to correct these problems before they get out of hand. System hostname XXXX Operating system Debian Linux 4.0 Webmin version 1.410 Time on system Sat May 3 06:04:16 2008 System uptime 2 days, 5 hours, 16 minutes CPU load averages 21.29 (1 min) 17.78 (5 mins) 16.60 (15 mins) Real memory 2.95 GB total, 1.02 GB used Virtual memory 651.03 MB total, 64 kB used Local disk space 13.14 GB total, 10.49 GB used --------------------------------------------- World is connected to login server eqemulator.net:5998. World is NOT locked. Lock World. There are 50 zones booted, 1 launchers connected, and 52 players online. |
Almost 1GB in 6hours. Not sure where it is going...
System hostname XXXX Operating system Debian Linux 4.0 Webmin version 1.410 Time on system Sat May 3 12:12:10 2008 System uptime 2 days, 11 hours, 24 minutes CPU load averages 23.73 (1 min) 21.77 (5 mins) 19.31 (15 mins) Real memory 2.95 GB total, 1 GB used Virtual memory 651.03 MB total, 68 kB used Local disk space 13.14 GB total, 11.23 GB used |
After doing some searching, I found this website that says you can run this command to search for large files:
Code:
find / -type f -size +100000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }' For me, this yielded the following: Code:
/var/lib/mysql/ibdata1: 114M |
It's probably your log files, because the start program you are using erases them when you re-boot the server. Every time someone just logs into your server it adds a lot of info. There has to be a way to turn them off....
|
Well, my eqemu log files aren't very bad at all. They only get to be a couple hundred MB total per day. But, apparently mysql has decided to start some logs of it's own...
Code:
-rw-rw---- 1 mysql adm 14523 2008-04-30 03:24 mysql-bin.000001 server:/etc/mysql# chmod go+rw my.cnf Then, open the my.cnf file in a text editor and comment these lines by putting a # in front of them: Code:
log_bin = /var/log/mysql/mysql-bin.log server:/etc/mysql# chmod go-rw my.cnf I just tried all of this myself, but I haven't restarted mysql yet to see if it works, but I imagine it should. I will restart mysql the next time I reboot the server and I will report back if this doesn't work. |
All times are GMT -4. The time now is 09:12 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.