Answer the question
In order to leave comments, you need to log in
Apache2 + map on google map api, how to optimize the return of a large number of images?
The c10t utility generates a Minecraft world map. It is generally displayed normally, but htop shows that only one user, when opening / scaling the map, loads the Apache processor to the maximum. When the card is loaded, the processor is freed up to 15%.
At the same time, the tiles folder (there are pictures in it) weighs only 9 mb. And there are no more than a hundred pictures in it.
I have never dealt with maps on the Google engine before, so I would like to clarify what the problem is.
Does the almost default apache2 "pull" a card of this size? Maybe it's not about him, but about the card generator and other strapping that worked incorrectly?
If the Apache is to blame - what to do? Put nginx in addition to it (I had no business with it either) for statics?
I tend to this option, at least I learn something useful.
In the morning, the cron will delete the folder with the result (so as not to hang up the server when TF2 players and Minecraft itself begin to arrive), so while I publish a link to the unfortunate map, maybe it will give some useful information: dobroservers.ru/mc/
Answer the question
In order to leave comments, you need to log in
It is better to install nginx for statics. Through it, and pictures can be immediately resized.
I looked at your site, somehow you have a completely crooked Apache configured. He shouldn't work like that. He does not give some of the pictures at all, the connections are torn by timeout. Check the number of threads and workers, as well as the allocation of memory for the cache. Perhaps some extensions are also stupid, try turning everything off at all and see if it helps.
When you set up Apache, in your case I advise you to put squid in caching proxy mode instead of nginx. I don’t know about your OS, but in most cases there is a ready-made config specifically for this purpose, which can be launched in 5 minutes.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question