[talk-ph] Philippines PGS coastline import

Jim Morgan jim at datalude.com
Wed Jun 17 06:43:31 BST 2009


>     > From: maning sambale <emmanuel.sambale at gmail.com
>     > Date: Tuesday, 16 June, 2009, 5:02 AM
>     > Nice work ianhaylock!
>     > I downloaded the file and my PC crawled!  

I suspect you know this one already Maning, but I'm posting it to the forum so everyone can benefit ... 

When you start a java application with the standard command eg
  java -jar josm-latest.jar 

it only allocates a small bit of memory to the application - I think it only gives 64Mb by default. You can increase this by specifying more on the command line. 

I've got 2Gb of memory in my laptop, so I can use this:
 java -jar -Xms500m -Xmx500m josm-tested.jar
which gives me 500Mb of memory available to the application. In this case it loads pretty fast, and has no trouble with a 58Mb file. 

If you have less RAM you might want to try 128m or 256m for example. Or if you have more RAM, then you could try 1g (one gigabyte) or more. 

Jim





More information about the talk-ph mailing list