ThinkingRock Forum

To go back to http://www.trgtd.com.au
It is currently Tue May 21, 2013 1:50 pm

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 22 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Thu Apr 05, 2007 11:27 pm 
Offline

Joined: Wed Jul 05, 2006 10:51 am
Posts: 898
Location: Sydney, Australia
You can significantly improve the speed of TR by including some Java options in the startup command - see explanation below.

E.g. To change the initial RAM allocation to 128MB and the maximum RAM allocation to 256MB include -Xms128m -Xmx256m

On Windows change the command to something like:

java -Xms128m -Xmx256m -jar "C:\Program Files\ThinkingRock\thinking-rock-win32-1.2.3.jar"

For mac you need to change the file:
ThinkingRock.app/Contents/MacOS/thinking-rock
to add the options - something like:

#!/bin/sh
BASEDIR=`dirname "$0"`
cd "$BASEDIR"
exec java -Xms128m -Xmx256m -Xdock:name="ThinkingRock" -Xdock:icon=../Resources/thinking-rock.icns -jar "$BASEDIR"/thinking-rock-macosx-1.2.3.jar


Explanation
By default Java allocates an initial and a maximum amount of RAM (memory) to use. When more RAM is required the garbage collector (GC) is run to try and free space and/or more RAM is allocated until the maximum is reached.

Since these (initial and maximum) amounts are quite small programs such as TR waste alot of time running the GC and allocating RAM.

_________________
ThinkingRock Developer


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 06, 2007 10:50 am 
Offline

Joined: Tue Feb 06, 2007 4:30 pm
Posts: 25
How do I edit the file in mac? It dosn't let me open it with textedit.

_________________
"The person who says it can't be done should not interrupt the person doing it."


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 06, 2007 11:11 am 
Offline

Joined: Wed Jul 05, 2006 10:51 am
Posts: 898
Location: Sydney, Australia
It should do.

Right-click (or Control-click) the ThinkingRock.app and choose show package contents ...

Otherwise, could it be a file permission problem? Show Info on the thinkingrock script file and see if you have read and write access.

_________________
ThinkingRock Developer


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 10, 2007 8:46 am 
Offline

Joined: Wed Nov 01, 2006 4:43 am
Posts: 11
On my Linux system startup time has been decreased from ~8 sec. to ~6 sec.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 10, 2007 9:16 am 
Offline

Joined: Wed Jul 05, 2006 10:51 am
Posts: 898
Location: Sydney, Australia
After 60 startups you will have an extra 2 minutes to get something done :lol:

Anyway it should be a bit better.

_________________
ThinkingRock Developer


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 10, 2007 9:23 am 
Offline
User avatar

Joined: Fri Mar 02, 2007 8:46 am
Posts: 168
For those of you, like me, using Windows and who have windows configured to 'execute' the JAR file, you need to change the options for the file type association.

Open Windows Explorer.
Go to Tools|Folder Options|File Types
Find and highlight JAR
Click on Advanced
Select the 'Open' option and click Edit
Edit the application path to include the flags Jeremy discussed before the -jar flag.
OK all the way out.
Robert, as the saying goes, is your Mother's Brother.

_________________
--
Stuart


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 10:27 am 
Offline

Joined: Tue Feb 06, 2007 4:30 pm
Posts: 25
I'm slight;y confused about this. i edited the TR JAr application icon to Jeremy's modified command above. Is that not right?

_________________
"The person who says it can't be done should not interrupt the person doing it."


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 10:32 am 
Offline
User avatar

Joined: Fri Mar 02, 2007 8:46 am
Posts: 168
Treo wrote:
i edited the TR JAr application icon to Jeremy's modified command above. Is that not right?

It might be better if you wait for a grown up to tell you. I can just about spell Java; after that I'm lost. However, my impression was that that wouldn't work. Of course, if you are seening an improvement then I guess I was wrong.

_________________
--
Stuart


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 10:41 am 
Offline

Joined: Tue Feb 06, 2007 4:30 pm
Posts: 25
I don't think I am seeing an improvement. Where would I put the new command using your method? Assume I am 4 years old.

This is current string in Edit Executable file typr JAR:

"C:\Program Files\java\jre1.5.0_11\bin\javaw.exe" -jar"%1"%*

What should that become?

Remember, I'm 4 years old...

_________________
"The person who says it can't be done should not interrupt the person doing it."


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 10:47 am 
Offline
User avatar

Joined: Fri Mar 02, 2007 8:46 am
Posts: 168
Treo wrote:
"C:\Program Files\java\jre1.5.0_11\bin\javaw.exe" -jar"%1"%*

"C:\Program Files\java\jre1.5.0_11\bin\javaw.exe" -Xms128m -Xmx256m -jar "%1" %*

_________________
--
Stuart


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 11:58 am 
Offline

Joined: Tue Feb 06, 2007 4:30 pm
Posts: 25
mmm, seems to take even longer to load! I wonder if I need to reset the command line of the actual application to what it was.

_________________
"The person who says it can't be done should not interrupt the person doing it."


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 12:04 pm 
Offline
User avatar

Joined: Fri Mar 02, 2007 8:46 am
Posts: 168
Treo wrote:
mmm, seems to take even longer to load!

Odd. It is much quicker to load here.
Quote:
I wonder if I need to reset the command line of the actual application to what it was.

Can't hurt; I didn't change mine at all.

_________________
--
Stuart


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 12:10 pm 
Offline

Joined: Tue Feb 06, 2007 4:30 pm
Posts: 25
There's an enormous amount of hard disk activity, even after I quit it, and it has slowed everything else up. maybe something else is going on.

_________________
"The person who says it can't be done should not interrupt the person doing it."


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 12:26 pm 
Offline
User avatar

Joined: Fri Mar 02, 2007 8:46 am
Posts: 168
I notice that you're using 1.5.0_11;I'm using _09 so I don't know if there is anything between the versions that could be making a difference.

I suggest rebooting and starting TR using your new cmd line immediately after everything has started. See if there is a difference, for the better or worse. If things aren't better then try setting things back to the way they were and reboot and try again.

Failing that you really are going to have to wait for a grown up I should imagine Jeremy is tucked up in bed by now.

_________________
--
Stuart


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 1:13 pm 
Offline

Joined: Mon Dec 11, 2006 7:11 pm
Posts: 386
Location: USA
Treo wrote:
There's an enormous amount of hard disk activity, even after I quit it, and it has slowed everything else up. maybe something else is going on.


How much RAM do you have in your system? I'm guessing that you have say 256 or 512 MB ?

What you are seeing is your other programs' memory being paged out to the swap file to free enough memory for TR.

If you have a low amount of RAM you should probably not use this speed enhancement. The enhancement trades memory for speed, but that only works if you have spare memory to trade.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 22 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group