I am using GraphicsMagick C++ api and calling it in a java web project which is deployed on tomcat to resize images dynamically on runtime from a certain size to given width/height. I am using scale() method of C++ api.
Now the performance is normal when there is not much load on tomcat but when number of connections/load increases on server the performance of Image resizing declines greatly. Even it goes to 30 to 40 seconds on each resize. Although memory , cpu and io utilization of the system seems normal and not bad at all.
Can any one help me with this issue? I would be highly grateful