Java program is getting slower after running for a while

前端 未结 7 1431
天涯浪人
天涯浪人 2021-02-04 03:20

I have a java program that is a typical machine learning algorithm, updating the values for some parameters by some equations:

for (int iter=0; iter<1000; ite         


        
7条回答
  •  时光说笑
    2021-02-04 04:01

    You could try calling System.gc() every couple iterations to see if performance goes up or down. This may help you narrow it down to some of the previous answers diagnostics.

提交回复
热议问题