Hello,
i am experiencing periodical gateway crashes caused by memory problems on 32bit windows. The problem is not the java heap memory but the native windows memory. At a certain point the gateway process is not able to get any more heap memory from windows, so creation of new java threads or malloc in native libraries (stack trace below) fails.
When i watch the memory allocation with VMMap, i can see that heap memory usage is constantly increasing up to about 1.6G when the gateway starts to fail.
My prime suspect is the SQLite library since it seems to allocate lots of native heap memory. I am not exactly sure when the problem occcured first, but it might have been together with the change of Ignitions internal db.
Is this a known problem or does anybody know a solution?
INFO | jvm 7 | 2017/07/17 13:40:13 | Caused by: java.sql.SQLException: [SQLITE_NOMEM] A malloc() failed (out of memory)
INFO | jvm 7 | 2017/07/17 13:40:13 | at org.sqlite.core.DB.newSQLException(DB.java:890)
INFO | jvm 7 | 2017/07/17 13:40:13 | at org.sqlite.core.DB.newSQLException(DB.java:901)
INFO | jvm 7 | 2017/07/17 13:40:13 | at org.sqlite.core.DB.execute(DB.java:810)
INFO | jvm 7 | 2017/07/17 13:40:13 | at org.sqlite.jdbc3.JDBC3PreparedStatement.executeQuery(JDBC3PreparedStatement.java:68)
INFO | jvm 7 | 2017/07/17 13:40:13 | at com.inductiveautomation.ignition.gateway.localdb.DelegatingDataSource$DelegatingConnection$DelegatingPreparedStatement.executeQuery(DelegatingDataSource.java:574)
INFO | jvm 7 | 2017/07/17 13:40:13 | at simpleorm.sessionjdbc.SQueryExecute.executeQuery(SQueryExecute.java:61)
INFO | jvm 7 | 2017/07/17 13:40:13 | ... 32 more