diff --git a/src/javaforce/controls/Controller.java b/src/javaforce/controls/Controller.java index 5d67ac6f..f30fb0ee 100755 --- a/src/javaforce/controls/Controller.java +++ b/src/javaforce/controls/Controller.java @@ -86,6 +86,8 @@ public boolean connect(String url) { if (!netty) { netty = true; JFLog.log("Disabling netty unsafe usage!"); + System.setProperty("io.netty.allocator.numDirectArenas", "0"); + System.setProperty("io.netty.noPreferDirect", "true"); System.setProperty("io.netty.noUnsafe", "true"); } plcType = ControllerType.PLC4J; @@ -97,7 +99,9 @@ public boolean connect(String url) { } try { plcConn = PlcDriverManager.getDefault().getConnectionManager().getConnection(url); + JFLog.log("Controller:conn=" + plcConn); plcDrv = PlcDriverManager.getDefault().getDriver(driver); + JFLog.log("Controller:driver=" + plcDrv); return true; } catch (Exception e) { JFLog.log(e);