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

Please login with a confirmed email address before reporting spam

For your informations,

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!


6 Replies Last Post 2012年5月22日 GMT-4 12:13
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2011年5月18日 GMT-4 13:18
In fact, there's a link from COMSOL's front webpage that presents the most salient new features and capabilities of version 4.2:

www.comsol.com/products/4.2/

Jeff
In fact, there's a link from COMSOL's front webpage that presents the most salient new features and capabilities of version 4.2: http://www.comsol.com/products/4.2/ Jeff

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2011年6月9日 GMT-4 12:54
I have difficulty in starting COMSOL 4.2 Matlab Live Link. Can anyone please help?

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]

"
*******************************************************
I have difficulty in starting COMSOL 4.2 Matlab Live Link. Can anyone please help? 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] " *******************************************************

Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2011年6月14日 GMT-4 09:08
The LIveLink for MATLAB that comes with Comsol 4.2 has a new set of memory settings that is defined by this file:

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
The LIveLink for MATLAB that comes with Comsol 4.2 has a new set of memory settings that is defined by this file: 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

Posted: 1 decade ago 2011年7月14日 GMT-4 09:08
Hi All~
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
Hi All~ 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

Posted: 1 decade ago 2012年5月22日 GMT-4 11:39
I used to have the same problem with Comsol 4.1 on my mac and therefore decided to only use Comsol on my Linux desktop machine. Did you find a solution for your 4.2 issue?

Any help is still appreciated, thank you.

Carolin
I used to have the same problem with Comsol 4.1 on my mac and therefore decided to only use Comsol on my Linux desktop machine. Did you find a solution for your 4.2 issue? Any help is still appreciated, thank you. Carolin

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2012年5月22日 GMT-4 12:13
To be honest, I have mostly given up on it since then. I'll probably try it once I get my hands on 4.3.
To be honest, I have mostly given up on it since then. I'll probably try it once I get my hands on 4.3.

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.