Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Comsol 4.2
Posted 2011年5月18日 GMT-4 12:34 Interfacing Version 4.2 6 Replies
Please login with a confirmed email address before reporting spam
I just received an email for a free workshop on COMSOL Multiphysics Version 4.2 at montreal in one week. We should receive the cd soon!
Please login with a confirmed email address before reporting spam
www.comsol.com/products/4.2/
Jeff
Please login with a confirmed email address before reporting spam
I think it has something to do with Matlab/java heap space. My computer is a Dell Latitude XT2, Duo CPU @1.60 GHZ, 2.95Gb of RAM.
However, I was able to run COMSOL 4.1 Matlab Live link quite successfully for my optimization applications, although it is a bit slow, occasionally with Java out of heap error.
When I start 4.2 Matlab LiveLink, it has the following errors:
"C:\COMSOL42\bin\win32\comsolserver.exe matlab
COMSOL 4.2 (Build: 171) started listening on port 2036
Use the console command 'close' to exit the application
Opening log file: C:\DOCUME~1\XIAOPI~1\LOCALS~1\Temp\java.log.3792
ERROR: Could not start COMSOL Application. See log file: C:\Documents and Settings\XiaoQian\.comsol\v42\logs\server5.log"
********************************************************
The error file java.log.3792 shows the following
"Error occurred during initialization of VM
Could not reserve enough space for object heap
Stack Trace:
[0] jmi.dll:void __stdcall mwJavaAbort(void)(0x79025578 "Could not reserve enough space f..", 0, 0, 0x0457b0f0) + 21 bytes
------------------------------------------------------------------------
Fatal Java Exception detected at Thu Jun 09 10:53:59 2011
------------------------------------------------------------------------
Configuration:
MATLAB Version: 7.6.0.324 (R2008a)
MATLAB License: 161051
Operating System: Microsoft Windows XP
Window System: Version 5.1 (Build 2600: Service Pack 3)
Processor ID: x86 Family 6 Model 7 Stepping 10, GenuineIntel
Virtual Machine: Java is not enabled
Default Encoding: windows-1252
Java is not enabled"
**********************************************
The error file server5.log shows the following
***************************************************
"
00000:000 INFO COMSOL 4.2.0.171 starting. [com.comsol.util]
00000:016 INFO BundleEvent STARTED [org.eclipse.emf.common]
00000:031 INFO BundleEvent STARTED [org.eclipse.emf.cdo.common]
00000:031 INFO BundleEvent STARTED [org.eclipse.emf.cdo]
00000:031 INFO BundleEvent STARTED [org.eclipse.net4j]
00000:031 INFO BundleEvent STARTED [org.eclipse.net4j.tcp]
00000:047 INFO BundleEvent STARTED [org.eclipse.net4j.util]
00000:047 INFO BundleEvent STARTED [org.eclipse.emf.cdo.server]
00000:078 INFO BundleEvent STARTED [org.eclipse.emf.ecore]
00000:266 INFO BundleEvent STARTED [org.eclipse.emf.ecore.xmi]
00000:406 INFO BundleEvent STARTED [org.eclipse.net4j.jvm]
00000:984 INFO BundleEvent STARTED [com.comsol.model]
00001:359 INFO BundleEvent STARTED [com.comsol.nativejni]
00001:484 INFO BundleEvent STARTED [com.comsol.geommesh]
00001:484 INFO BundleEvent STARTED [com.comsol.guidesign]
00001:500 INFO BundleEvent STARTED [com.comsol.post]
00003:219 ERROR Exception:
com.comsol.util.exceptions.FlException: Program did not exit normally
Messages:
Program did not exit normally
[com.comsol.logger]
00003:219 ERROR Stack trace: [com.comsol.logger]
00003:219 ERROR at com.comsol.mli.application.b.a(Unknown Source)
at com.comsol.mli.application.MatlabApplication.doStart(Unknown Source)
at com.comsol.util.application.ComsolApplication.doStart(Unknown Source)
at com.comsol.util.application.ComsolApplication.doRun(Unknown Source)
at com.comsol.server.ServerApplication.doStart(Unknown Source)
at com.comsol.util.application.ComsolApplication.doStart(Unknown Source)
at com.comsol.util.application.CsBaseApplication.start(Unknown Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
[com.comsol.logger]
00003:234 DEBUG ServiceEvent MODIFIED [org.eclipse.equinox.app]
00003:250 DEBUG ServiceEvent MODIFIED [org.eclipse.equinox.app]
00003:250 DEBUG ServiceEvent MODIFIED [org.eclipse.equinox.app]
00003:250 DEBUG ServiceEvent MODIFIED [org.eclipse.equinox.app]
00003:250 DEBUG ServiceEvent MODIFIED [org.eclipse.equinox.app]
00003:250 DEBUG ServiceEvent MODIFIED [org.eclipse.equinox.app]
00003:266 DEBUG ServiceEvent MODIFIED [org.eclipse.equinox.app]
00003:266 DEBUG ServiceEvent MODIFIED [org.eclipse.equinox.app]
00003:266 DEBUG ServiceEvent MODIFIED [org.eclipse.equinox.app]
00003:266 DEBUG ServiceEvent MODIFIED [org.eclipse.equinox.app]
00003:266 DEBUG ServiceEvent MODIFIED [org.eclipse.equinox.app]
00003:266 DEBUG ServiceEvent MODIFIED [org.eclipse.equinox.app]
00003:266 DEBUG ServiceEvent MODIFIED [org.eclipse.equinox.app]
00003:281 DEBUG ServiceEvent MODIFIED [org.eclipse.equinox.app]
00003:281 DEBUG ServiceEvent MODIFIED [org.eclipse.equinox.app]
00003:281 DEBUG ServiceEvent MODIFIED [org.eclipse.equinox.app]
00003:281 DEBUG ServiceEvent MODIFIED [org.eclipse.equinox.app]
00003:281 DEBUG ServiceEvent MODIFIED [org.eclipse.equinox.app]
00003:281 INFO ServiceEvent UNREGISTERING [org.eclipse.equinox.app]
00003:297 INFO ServiceEvent UNREGISTERING [org.eclipse.osgi]
00003:297 INFO ServiceEvent UNREGISTERING [org.eclipse.osgi]
00003:297 INFO ServiceEvent UNREGISTERING [org.eclipse.osgi]
00003:312 INFO BundleEvent STOPPED [com.comsol.init]
00003:312 INFO Loggers un-registered with log service. [com.comsol.logger]
"
*******************************************************
Please login with a confirmed email address before reporting spam
c:\COMSOL42\mli\startup\java.opts
You can open the file in an editor and change the settings.
You could try with these settings:
-Xss4m
-Xmx512m
-XX:MaxPermSize=128m
or even lower numbers.
You have to restart Comsol with Matlab after having changed the java.opts file.
Lars Gregersen
Comsol Denmark
Please login with a confirmed email address before reporting spam
It appears I am having a problem using COMSOL 4.2 with MATLAB R2011a on a MacBook Pro running OSX. Whenever I run the program (so that the server is running with MATLAB and the COMSOL window is not open) MATLAB gets really slow (most noticeable with simply trying to scroll. It takes multiple seconds to start scrolling then just jumps down to where it should've gone. I can't imagine what else is slowing down because of it, but I know my simulation is much slower as well.
Both COMSOL and MATLAB work just fine separately. Is there something that the LiveLink could be doing that's slowing both/MATLAB down? This didn't/doesn't happen with 4.1 when I use it, but I have some new models that only work in 4.2 so I have no choice here. Any help is appreciated thank you.
~Brock
Please login with a confirmed email address before reporting spam
Any help is still appreciated, thank you.
Carolin
Please login with a confirmed email address before reporting spam
Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.
Suggested Content
- KNOWLEDGE BASE Error: Failed to Connect to SOLIDWORKS
- FORUM COMSOL with matlab
- BLOG COMSOL Multiphysics v4.2 New Features Video
- KNOWLEDGE BASE COMSOL Software Architecture
- FORUM COMSOL using Python