Any news from JDK-8151981 in Java8 ?

João Paulo Varandas joaovarandas at inpaas.com
Mon Dec 11 22:07:18 UTC 2017


Hi guys!

We are also experiencing some odd issues here with setCallSiteTargetNormal.
https://bugs.openjdk.java.net/browse/JDK-8151981

Our cenario is:

- Web Application using Tomcat;
- 8 HTTP Threads;
- A single ScriptEngine for the whole application;

When a request hits the server, that request may be processed by a Nashorn
Script, this script is evaluated during runtime, run queries (Jdbc), and
return results (Maps and/or Collections) that are serialized to JSON before
being written to the response.

The problem is... sometimes 7 or more threads are getting stuck in the
setCallSiteTargetNormal and I have no clue why is that happening. Could you
guys help me out troubleshooting this? - Or, if there's a bug, what are the
recomended fixes I should do?


By the way, those are not freshly created ScriptEngines (which differ from
the normal issues related in the internet).

-- 
"Esta mensagem, incluindo seus anexos, pode conter informacoes 
confidenciais e privilegiadas. 
Se voce a recebeu por engano, solicitamos que a apague e avise o remetente 
imediatamente. 
Opinioes ou informacoes aqui contidas nao refletem necessariamente a 
posicao oficial da Plusoft."

"Antes de imprimir, pense em sua responsabilidade e compromisso com o MEIO 
AMBIENTE"



More information about the nashorn-dev mailing list