pytorch / serve

Serve, optimize and scale PyTorch models in production
https://pytorch.org/serve/
Apache License 2.0
4.04k stars 821 forks source link

WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance. #3204

Open aalbersk opened 4 days ago

aalbersk commented 4 days ago

Hi, I've been running models with Torchserve 0.11.0 on Sagemaker and noticed following warning: WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance. when starting the Torchserve.

I read that this method was removed in Java8 (https://stackoverflow.com/questions/23808803/sun-reflect-reflection-getcallerclass-alternative?noredirect=1&lq=1). How does lack of support for this method affect performance? What is required to get rid of this warning when running torchserve?

agunapal commented 2 days ago

Hi @aalbersk We benchmark TorchServe on a nightly basis and In general, we haven't see the java portion of TorchServe show any regression.

But we will look into this warning