Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > 123 Flash Chat Server Software > 123 Flash Chat Support

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-02-2004, 03:19 AM
Member
 
Join Date: Mar 2004
Posts: 69
Default I am not sure but...

Seems odd, but the Java Server crash or stop working. This have happen a couple of times. I have to ./fcserver restart I am not completely sure but I have my doubts.

Anyone knows how to put a cron job so the java server is 'restarted' daily or something like that.?

TIA
  #2 (permalink)  
Old 07-02-2004, 06:15 AM
Senior Member
 
Join Date: Jan 2001
Posts: 413
Default Re:I am not sure but...

what's your server OS ?
If your server is freebsd, some jdk 1.4 on freebsd isn't stable enough.
Our chat server installed on linux, and it runs the chat server for a couple of months, and runs well.
anyway, if you want to add a crontab job, you can create a shell script under the <123 flash chat server installed dir>, for example, named "restartchat.sh"

Code:
cd <123 flash chat server installed dir>
./fcserver.sh restart
then execute the command:

chmod a+x restartchat.sh
crontab -e

add one row in the end
0 0 * * * <123 flash chat server installed dir>/restartchat.sh

one more thing, sometime if the free memory on your server has almost been cost by others application , the chat server will stop working. if that, please increase your server memory to resolve it or move the other applications which cost most memory to other servers.
you can check the free memory by this command:
free





  #3 (permalink)  
Old 08-30-2004, 03:54 PM
Junior Member
 
Join Date: Aug 2004
Posts: 3
Default Re:I am not sure but...

How many months? does it run before you have to restart it.

Can you not leave it on forever or unlimited months.


:P
  #4 (permalink)  
Old 09-02-2004, 12:15 AM
Senior Member
 
Join Date: Jan 2001
Posts: 413
Default Re:I am not sure but...

Quote:
Originally Posted by Nappyman
How many months? does it run before you have to restart it.

Can you not leave it on forever or unlimited months.


:P
if your server have enough resouce, you don't have to think about the restart thing, but in some situation, some other application on your server like written by C, sometimes memory leak, it cost almost of the memory on the server, or some application cost 99% cpu, then the chat server won't work because there is no resource to use.
btw, I don't recommend the chat server runs in FreeBSD, there isn't a stable jdk 1.4.x version works for the java new io(NIO) system so far(123flashchat server use the java.nio package which have a great performance) .
our demo chat server works for 2 months since last upgrade, runs in redhat linux 9, P4 2.2G, 1G memory
Closed Thread

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:37 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.