C
C
Conacry2017-03-27 16:16:14
Java
Conacry, 2017-03-27 16:16:14

Prevent garbage collection during critical path execution?

Hello.
Task: there is a desktop application that periodically exchanges information with industrial controllers via Modbus RTU, and it is important that stop-the-world does not occur at the time of the exchange of messages.
Is it possible in Java (JVM Hotspot) to disable garbage collection during critical path execution?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Axian Ltd., 2017-03-27
@Conacry

No. Do not try. It has been repeatedly discussed on stackoverflow and other places. For example: stackoverflow.com/questions/12847151/setting-xxdis...
It's better IMHO to read this
www.oracle.com/technetwork/articles/java/nilsen-re...
www.oracle.com/technetwork/articles/java /nilsen-re...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question