[osmosis-dev] call osmosis from groovy
Brett Henderson
brett at bretth.com
Sat Sep 17 03:40:09 BST 2011
Hi Ruediger,
8000 threads! That's impressive :-)
Unfortunately there's not much you can do about it. Osmosis will use one
thread per xml reader, and one thread per merge task. It's probably
possible to develop a more efficient implementation but your use case sounds
fairly unusual. If it won't run properly with 8000 threads you could try
running Osmosis in several passes by combining smaller sets together then
combining merged files into larger merged files.
Cheers,
Brett
On Fri, Sep 16, 2011 at 12:17 AM, Gubler, Ruediger <rgubler at init-ka.de>wrote:
> Oh no,
>
> I found the error:
>
> for(String fileStr : subFiles)
> {
> argsList.add("--fast-read-xml " + new File(dir, fileStr).canonicalPath)
> count++
> }
> for(int ii = 1; ii < count; ii++)
> {
> argsList.add("--merge")
> }
> argsList.add("--wx " + new File(localDirectory, "tmp/osm/merged.osm"))
>
>
> must be
>
>
> for (String fileStr: subFiles)
> {
> argsList.add("--fast-read-xml")
> argsList.add(new File(dir, fileStr).canonicalPath)
> count++
> }
> for (int ii = 1; ii < count; ii++)
> {
> argsList.add("--merge")
> }
> argsList.add("--wx")
> argsList.add(new File(localDirectory, "tmp/osm/merged.osm").canonicalPath)
>
>
> The arguments must different entries not "--fast-read-xml c:\...." but
> "--fast-read-xml" "c:\...."
>
>
> Now it works but osmosis is using over 8000 threads for 1904 *.osm files to
> merge ?!
>
>
>
> Yours Rüdiger
>
>
> _______________________________________________
> osmosis-dev mailing list
> osmosis-dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/osmosis-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20110917/c23ba0d2/attachment.html>
More information about the osmosis-dev
mailing list