java.lang.OutOfMemoryError: Java heap space using Matlab R2013a Java version 1.6.0_35-b10
Afficher commentaires plus anciens
Hi,
- I have download and installed Java 1.6.0_35-b10, so without while loop if i list add working , but when i have used while loop then i am getting java.lang.OutOfMemoryError: Java heap space.?
On Mat-lab Part Side
list=java.util.ArrayList();
for k=1:length(matrix)
list.add(int32(matrix(k)));
end
import edu.lipreading.*;
training = MainMethod;
training.list_method(list);
on Java Class Part Side
public void list_method(List<Integer> points){
while(true){
Sample sample = new Sample();
sample.getMatrix().add(points);
}
}
I am getting error when i am run my mat-lab application.?
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2734)
at java.util.Vector.ensureCapacityHelper(Vector.java:226)
at java.util.Vector.add(Vector.java:728)
at edu.lipreading.MainMethod.onRecord(MainMethod.java:40)
at edu.lipreading.MainMethod.list_method(MainMethod.java:26)
- Note :please let me know where i have done mistaken ?because from input web cam video processing various coordinates values in list 1-by-8 matrix .?
- Example :matrix =[1,2,3,4,5,6,7,8] ,[554,33,2,2,544,2332,2,2] etc..
- Note 2: I have followed result link also ,but i cannot resolved my issue please let me know .
- Link 1 : outofmememoryerror
- Link 2: java.opts file
Réponses (0)
Catégories
En savoir plus sur Call Java from MATLAB dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!