How do I solve Java errors with R2018a on Ubuntu 16.04
조회 수: 3 (최근 30일)
이전 댓글 표시
I recently updated to R2018a and I've been encountering a few problems:
- It takes much longer for the program to start and when it does it's laggy
- when I run something expensive e.g. train a neural network, it just hangs and I need to force restart the machine (my friends linux machine running the same code on 2017a works just fine, and we have comparable specs)
- It keeps throwing Java errors. E.g. upon starting MATLAB:
% Exception in thread "Image Fetcher 0" java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.io.BufferedInputStream.<init>(BufferedInputStream.java:203)
at java.io.BufferedInputStream.<init>(BufferedInputStream.java:183)
at sun.awt.image.PNGImageDecoder.produceImage(PNGImageDecoder.java:250)
at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:269)
at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:205)
at sun.awt.image.ImageFetcher.run(ImageFetcher.java:169)
I've increased the Java heap memory to the maximum (1965 mb), but the issue still persists. I've monitored swap memory usage, but it doesn't seem to be used during these operations (remains 0) The swap isn't encrypted.
댓글 수: 0
답변 (1개)
Sergio Ciliberto
2018년 8월 17일
편집: Walter Roberson
2018년 8월 17일
what worked for me is to launch matlab with the following command line
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/local/MATLAB/R2018a/bin/matlab
you can also look on the site https://www.math.univ-paris13.fr/~cuvelier/Matlab/Ubuntu_16-04LTS.html
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!