-
Notifications
You must be signed in to change notification settings - Fork 80
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
Upon start up, tessera spends several minutes at 100% CPU before returning anything #64
Comments
Further investigation appears to show that the CPU intensive part takes place before it reads the tm2source. I had a typo in a tessera config, pointing to an non-existant tm2source, and the error about that appear after several minutes of sitting there churning away. Also I think Kosmtik has the same/similar problem. |
Print statement debugging is telling me that the biggest slow down is from the call to |
Ah, that makes total sense, particularly since openstreetmap-carto is quite complex. The potential way around that would be to pre-compile the CartoCSS to XML, but that won't work with the existing
|
I know that the openstreetmap-carto style is very complicated (some say it's one of the most complex cartocss styles out there), however the times I'm seeing are very strange. It's taking 4 minutes for it to convert the style! Surely something is going wrong? When I run the I don't know enough about nodejs or npm in order to be do a |
Another weird data point: You can check out the openstreetmap-carto style, and render it with tessera with this command: |
Very odd, especially since some of the initialization time for database-backed styles is checking whether tables exist, etc., which isn't necessary with vector tiles.
Nice talk at SotM, btw! |
osm-carto should take 10 seconds or so to compile. After my blog post we found some big gains in how we were referring to layers by classes, but you'd already have those gains. This is what I found in Kosmtik as well as with the command line, and across a reasonable range of carto versions. |
I have made a local git clone of |
I have opened an issue on the carto project, hence the problem isn't here. |
I have ported the openstreetmap-carto style to vector tiles, and use tessera to serve it. I have pre-generated the vector tiles with
tilelive-copy
. I'm serving these over http. I'm using tessera to apply the osm-carto style to those vector tiles.And when I start tessera, and hit a URL for the map JS page, or an individual tile, I get mapnik log messages about depreciated min/maxzoom. And then tessera sits there for a long time (20 minutes?), at 100% of one CPU core, before it returns anything. Once it's gotten over this initial CPU thing, raster tile images are generated in a sensibly quick, snappy, manner. It's just the first tile that takes about 30 minutes.
From looking at the http request logs of the vector tiles, tessera is loading the tilejson file, and nothing else. So it's not loading the actual vector tiles files (ie the MVT pbf's).
What's going on? Why does it take so long to initialize? How can I debug this? stracing the process just shows
futex
stuff, so I presume it's doing all the things in Javascript.The text was updated successfully, but these errors were encountered: