Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resources are not freed properly #6

Open
uhlat opened this issue Jun 30, 2015 · 9 comments
Open

Resources are not freed properly #6

uhlat opened this issue Jun 30, 2015 · 9 comments

Comments

@uhlat
Copy link

uhlat commented Jun 30, 2015

When downloading big tilesets, the system will slowly run out of RAM since somewhere in the implementation (or external dependencies) resources are not free properly. See Screenshot for an example.

screenshot_2015-06-30_13-19-44

@mojodna
Copy link
Owner

mojodna commented Jun 30, 2015

Can you share the command you're using (or a filtered version of it) to help me determine which modules are in play?

Thanks.

@uhlat
Copy link
Author

uhlat commented Jul 2, 2015

sure, here you go:
tl copy -z 10 -Z 10 -b "-180 -90 0 90" tmstyle:///home/myhome/MapBox/streets.tm2 mbtiles:///home/myhome/Tiles/streets_10_-180_0.mbtiles

@mojodna
Copy link
Owner

mojodna commented Jul 6, 2015

Great, thanks. It's going to take me some time to get to this, as it involves firing up the heap snapshot processor, etc.

@jrunkel
Copy link

jrunkel commented Aug 24, 2015

Any update on this matter? I have the same problem. Copying from tmstyle to mbtiles as well.

@mojodna
Copy link
Owner

mojodna commented Sep 1, 2015

I haven't had a chance to look into this yet, sorry.

@morganmcc
Copy link

I think I just ran into this trying to generate a map of just the US based on a MapBox style. The command was very similar to what Uhlat used.
npm-exec tl copy -z 4 -Z 13 -b "-135.4395 16.3834 -56.4258 54.0078" tmstyle:///home/mccollm1/Documents/MapBox/MapBoxLight.tm2 mbtiles:///home/mccollm1/dev_monitor/tessera/MonitorMap_us.mbtiles

I left it running and it got most of the way through zoom level 12 before bailing:
12/1064/1786 103
FATAL ERROR: CALL_AND_RETRY_2 Allocation failed - process out of memory
Aborted (core dumped)

@morganmcc
Copy link

Forgot to mention I am using version 0.5.3.

@mojodna
Copy link
Owner

mojodna commented Oct 26, 2015

@morganmcc which version of Node and which OS? (Probably doesn't matter, but it might make a difference.)

@morganmcc
Copy link

I'm on Ubuntu 14.0.4 using node v0.10.40. I ran it again yesterday and periodically kept an eye on memory resources. It wasn't in any way a thorough test, but I did not notice any steady increase in memory. So, if there is a leak, it is a small one. Not sure if it helps, but I did notice that there are occasional CPU spikes and it seems to pause on a particular tile but then the CPU drops again and the log of tile numbers starts up again. Maybe that is just periodic cache cleanup?

What version of node have you been working with in your environment? I could try that one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants