out of memory error in matlab fuzzy system running with java

3 views (last 30 days)
Hi I have developed a fuzzy model in Matlab and converted in to Java package through Matlab builder JA. The fuzzy system takes four inputs and give one output. all inputs and output are numbers (type double). I am running this fuzzy system in java environment where inputs are generated with another java module.I am getting results when I just run a small loop like only 256 ( that means I am giving 4 inputs 256 times and get one output 256 time in single run).However, If I run the same model with 512 or 1024 times then It does not go through and middle of the program it is mentioned "out of memory error". Please note that I am running this model on high performance machine with 300 GB RAM.I follow the Matlab tutorial to convert the Matlab fuzzy model into java where I have also used dispose method. Could anyone give the reason why fuzzy is taken too much memory and how can I reduce the memory usage? your help in this regard would highly be appreciated

Answers (1)

Ryan G
Ryan G on 7 Jan 2013
If you're running this on Java only, it's not really a MATLAB question. However, to debug an issue like this one thing you can do is run test inputs through the Fuzzy system in MATLAB and see if there are any issues.
It sounds like there is a memory leak in your program and that may or may not involve the fuzzy system. It is important you determine whether or not it is the cause.
  3 Comments
Ryan G
Ryan G on 8 Jan 2013
Is the for-loop running in MATLAB or Java? Would it be possible to remove the for loop from the MATLAB code and instead write that portion in Java directly?
Jian Dong
Jian Dong on 14 Jan 2013
for -loop is running in Java. In matlab, there is only 3 lines code just calling .fis file where I have created fuzzy.

Sign in to comment.

Categories

Find more on Fuzzy Logic in Simulink in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!