i have java process startup , let run several days. logs process looked fine until end of process's lifetime see following 2 lines, , nothing after it.
terminate called after throwing instance of 'std::bad_alloc' what(): std::bad_alloc
there supposed shutdown logic executed when process ends, these 2 log lines see.
what cause of std::bad_alloc
error? i've seen several other posts regarding error c++ programmers, whereas using java, not c++. indicate bug in jvm, or consequence of jvm related error such outofmemoryerror?
you've run out of native memory (which distinct java heap). fix this, you'd need understand code of yours (or jars on classpath) using c++ under hood , making sure things being gc'd in timely fashion.
for example, if weren't calling close you'd possibly run same issue: https://docs.oracle.com/javase/7/docs/api/java/util/zip/gzipinputstream.html#close()
Comments
Post a Comment