-
How can I make my client go fastest? Is it slow because it's written in Java instead of C?
The Server Virtual Machine introduced in Java 1.4 is able to dynamically work out which parts of the code are crucial to the speed of an application, ie. those parts it spends most of its time executing. Then it recompiles these bits into optimized native code for the machine its running on which is no slower than C, answering the second question.
How do I install the Server VM under Linux?
First install Java 1.4.2. Now edit your client script changing the line that looks like ...java -D... so that it looks like ...java -server -D.... Enjoy!
How do I install the Server VM Windows?
First download and install the Java 1.4.2 SDK. Now go to where the SDK was installed (probably c:\j2sdk1.4.2 and go into jre and then into bin. Now copy the folder called server by selecting it and pressing Ctrl-C. Now go to where the Public version of java was installed (probably c:\Program Files\Java\j2re1.4.2 and go into bin and Paste by pressing Ctrl-V. A new folder should appear there called server.
If you used the windows installer or are running your island as a service then go to wherever your client was installed (Program Files/DHE perhaps) and edit (with Notepad for eg.) the wrapper.conf file. Insert the following line anywhere in the file:
wrapper.java.additional.2=-server
Now save wrapper.conf.
If you're using a script (like islandNT.bat) to run your island then edit it (with Notepad for eg.) changing the line that looks like ...java -D... so that it looks like ...java -server -D....
Enjoy!
http://www.informatics.sussex.ac.uk/...aq.php#fastest
-
-
is that just what you and bill did then,
add the extra line of code
did you download the java program aswell tho ?
-
go here to get it, yep udated the java to 1.4.2_06 and added the code
http://java.sun.com/j2se/1.4.2/download.html
[EDIT] :occasion1: woohoo got another star :occasion1: [/EDIT]
-
Yes you have to do SDK version and copy the "Server" folder as well.
-
Beerknurd - Hope you got that rearview mirror - Cause here I come. lol.
-
I noticed.... I'm doing the server thing now..... Do you add another cpu or did you just do the server thing???
-
i just added it from ototeros way of installing it as a executable not a service and it has hardly made a difference. i dont know if i did it right but i C: i found a folder called EvoBIST containing related files, i edited the wrapper.conf in here.
bill i think you had it running the same way as me, have i done it properly or not ????
-
Thats the way i did it. just added the -server. Its easier for me to run it as a service, i loaded it the other way so i could compare stats. still trying to find a way to make it run as fast as ototeros a64 3000. jlangners a64 3500 i can understand being faster.
-
Is this right??? Why is jlangner kicking my butt?? Do I have the server thing right???
Java Application
wrapper.java.command=java
wrapper.java.additional.2=-server
# Java Main class
wrapper.java.mainclass=org.tanukisoftware.wrapper. WrapperSimpleApp
# Java Classpath (include wrapper.jar) Add class path elements as
# needed starting from 1
wrapper.java.classpath.1=wrapper.jar
wrapper.java.classpath.2=ITClient.jar
# Java Library Path (location of Wrapper.DLL or libwrapper.so)
wrapper.java.library.path.1=./
# Java Additional Parameters
wrapper.java.additional.1=-Djava.security.policy=java.policy
# Initial Java Heap Size (in MB)
wrapper.java.initmemory=3
# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=64
# Application parameters. Add parameters as needed starting from 1
wrapper.app.parameter.1=distrit.client.Interactive TaskClient
wrapper.app.parameter.2=139.184.166.27
wrapper.app.parameter.3=KingKong
wrapper.app.parameter.6=-i
wrapper.app.parameter.7=5
wrapper.app.parameter.8=-c
wrapper.app.parameter.9=20
# Port which the native wrapper code will attempt to connect to
wrapper.port=1777
# Filter Properties
wrapper.filter.trigger.1=RestartInteractiveTaskCli entEvent:
wrapper.filter.action.1=RESTART
#************************************************* *******************
# Wrapper Logging Properties
#************************************************* *******************
# Format of output for the console. (See docs for formats)
wrapper.console.format=PM
# Log Level for console output. (See docs for log levels)
wrapper.console.loglevel=INFO
# Log file to use for wrapper output logging.
wrapper.logfile=
wrapper.logfile.loglevel=NONE
wrapper.logfile.format=
# Log Level for sys/event log output. (See docs for log levels)
wrapper.syslog.loglevel=NONE
#************************************************* *******************
# Wrapper NT Service Properties
#************************************************* *******************
# WARNING - Do not modify any of these properties when an application
# using this configuration file has been installed as a service.
# Please uninstall the service before modifying this section. The
# service can then be reinstalled.
# Name of the service
wrapper.ntservice.name=Distributed.EvoBIST
# Display name of the service
wrapper.ntservice.displayname=Distributed Hardware Evolution Island
# Description of the service
wrapper.ntservice.description=Distributed Hardware Evolution Island
# Service dependencies. Add dependencies as needed starting from 1
wrapper.ntservice.dependency.1=
# Mode in which the service is installed. AUTO_START or DEMAND_START
wrapper.ntservice.starttype=AUTO_START
# Allow the service to interact with the desktop.
wrapper.ntservice.interactive=false
wrapper.ntservice.process_priority=HIGH