This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Check user's RAM
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 19, 2008
12:38 AM
Check user's RAM
Hi,
I'm using IA 7 and IA 8.
Is there a way to check the user's RAM during installation? if for example the user have low RAM a message would show that he's RAM is lower than the required and the installer will exit.
Please help.
Thanks.:)
I'm using IA 7 and IA 8.
Is there a way to check the user's RAM during installation? if for example the user have low RAM a message would show that he's RAM is lower than the required and the installer will exit.
Please help.
Thanks.:)
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 21, 2008
05:17 AM
Available memory can be detected using different sources. They depends on plattform:
e.g.:
Linux: parse output of "free" command
HPUX: parse "top -d 1 -n 1" output
Windows: Little bit tricky here, you have to use a .vbs script to determine the values. I've attached an example .vbs script. (rename it as .vbs)
This you can call via
cscript /Nologo systeminfo.vbs
Starting with JDK 6 you can use the ManagementFactory.getPlatformMBeanServer() to fetch several data like "TotalPhysicalMemorySize" or "TotalPhysicalMemory".
But the available beans and their names depends on JVM vendor.
e.g.:
Linux: parse output of "free" command
HPUX: parse "top -d 1 -n 1" output
Windows: Little bit tricky here, you have to use a .vbs script to determine the values. I've attached an example .vbs script. (rename it as .vbs)
This you can call via
cscript /Nologo systeminfo.vbs
Starting with JDK 6 you can use the ManagementFactory.getPlatformMBeanServer() to fetch several data like "TotalPhysicalMemorySize" or "TotalPhysicalMemory".
But the available beans and their names depends on JVM vendor.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 28, 2009
07:55 PM
There is an all-Java solution. It makes use of open-source libraries that make JNI calls. I was calling systeminfo.exe and parsing the results, but XP Home doesn't have this executable!
Look at http://forums.hyperic.com/jiveforums/thread.jspa?messageID=26633æ ‰ for details.
Look at http://forums.hyperic.com/jiveforums/thread.jspa?messageID=26633æ ‰ for details.