Determine the current max shared memory size

Hello,
How do I determine the max shared memory value in effect on the box I have. I dont wish to trust /etc/system as that value may not be the effective value unless the system has been rebooted after that setting.
Any pointers would be appreciated.
Thanks
Mahesh

You can get the current values using adb:
# adb -k
physmem 3e113
shminfo$<shminfo
shminfo:
shminfo: shmmax shmmin shmmni
10000000 c8 c8
shminfo+0x14: shmseg
c8
The shminfo structure holds the values being used and the shminfo
macro will print out the values in hex.
Alan
Sun Developer Technical Support
http://www.sun.com/developers/support

Similar Messages

  • Can't find free space for Shared Memory (Size=83739 KB)

    Hello All,
              I have an issue. i am unable to bring up the server. It is ABAP system.
    dev_w0 log file show me memory error.
    I Fri May 01 10:11:55 2009
    I  *** ERROR => [MapOsShm] Can't find free space for Shared Memory (Size=83739 KB)
                   [shmnt.c      2174]
    I  *** ERROR => [AttachOsShm] MapViewOfFile(Key=62,Handle=0x000003FC) failed with Err=0
                   [shmnt.c      2174]
    I  *** ERROR => ShmCreate: Attach (62,85748608,2) failed [shmnt.c      422]
    Can some body help me with it.
    Thanks and regards
    Kiran

    I am running into the same issue. What exactly solved your problem?
    I will really appreciate any info., around this.
    i am trying to install CE 7.2 Developer Workplace on Windows 32 bit.
    Saurabh

  • XP Pro shared memory size of Intel GM45 on L305-S5905

    The laptop's Vista Home Premium was recently replaced with XP SP3.
    All is well, with one smaller (1GB) issue.
    I am fairly certain (not 100%) i had changed the shared memory in Vista to 128MB (i only do basic 2D desktop stuff, nothing that would need more memory), however in XP all i can see is in Video settings is on Adapter tab it shows 1024MB for the graphics card, which would explain why the XP booting with Physical Address Extension only shows 2.87GB free out of the 4GB total.
    Does anyone know where intel is hiding the ability to change the shared memory size, i don't seem to get nowhere with googling around for it. I would certainly rather have the memory available for applications than waste it on doing nothing. 
    I am looking at the intel driver since there is no option to set memory size in BIOS either.
    Thanks in advance for your help,
    Daniel

    windows xp are seeing only 3 G of Ram memory...vista can see a lot more of ram ....i intal window Xp on my laptop and have the same probleme...a instal vista ultimatum end now i can use all the memery...i search a lot of forum and the sead theat xp cand see up to 4 G of ram...but it's nat true......and the video driver is configuretet to use 1760MB the maximum video card memory...i'm looking for a program to change the memoory of the video card..but tiil now i didn'f find anyfing...

  • How to determine the current update level of the system

    How can we determine the current update level of the system. uname -a shows the release but how to obtain the update level through a program?
    I have this sample program to display the version
    #include <iostream>
    #include <sys/utsname.h>
    #include <dirent.h>
    using namespace std;
    int main()
      struct utsname osinfo;
      // Call uname to get system info, then extract strings.
      uname(&osinfo);
      if (osinfo.machine)  {
        cout<<" Machine : "<<  osinfo.machine;
      if (osinfo.sysname)  {
        cout << "\nOS Name : " << osinfo.sysname;
    if (osinfo.release[0] != '\0')  {
        cout<<"\nRelease : " << osinfo.release;
    }My aim is to check if the Solaris box is 5.10 update 4 or not.
    Edited by: nidhish9 on Nov 27, 2007 5:11 AM

    nidhish9 wrote:
    How can we determine the current update level of the system. uname -a shows the release but how to obtain the update level through a program?
    I have this sample program to display the version
    #include <iostream>
    #include <sys/utsname.h>
    #include <dirent.h>
    using namespace std;
    int main()
    struct utsname osinfo;
    // Call uname to get system info, then extract strings.
    uname(&osinfo);
    if (osinfo.machine)  {
    cout<<" Machine : "<<  osinfo.machine;
    if (osinfo.sysname)  {
    cout << "\nOS Name : " << osinfo.sysname;
    if (osinfo.release[0] != '\0')  {
    cout<<"\nRelease : " << osinfo.release;
    }My aim is to check if the Solaris box is 5.10 update 4 or not.
    Edited by: nidhish9 on Nov 27, 2007 5:11 AMIt's in /etc/release...
    essapd020-u004$ cat /etc/release
                           Solaris 10 8/07 s10s_u4wos_12b SPARC
               Copyright 2007 Sun Microsystems, Inc.  All Rights Reserved.
                            Use is subject to license terms.
                                Assembled 16 August 2007
    essapd020-u004$ It can be processed with some simple commands:
    essapd020-u004$ cat /etc/release | head -1
                           Solaris 10 8/07 s10s_u4wos_12b SPARC
    essapd020-u004$ cat /etc/release | head -1 | cut -f2 -d_ | cut -c1,2
    u4
    essapd020-u004$ Best,

  • IWork Numbers -- how to determine the current selected column/row?

    I am trying to write a script that grabs some text from a Numbers spreadsheet based on the selected field. I just can't figure how to actually get the column and row in a way I can use. Here's my start:
    tell application "Numbers"
    tell document 1
    -- DETERMINE THE CURRENT SHEET
    set currentsheetindex to 0
    repeat with i from 1 to the count of sheets
    tell sheet i
    set x to the count of (tables whose selection range is not missing value)
    end tell
    if x is not 0 then
    set the currentsheetindex to i
    exit repeat
    end if
    end repeat
    if the currentsheetindex is 0 then error "No sheet has a selected table."
    -- GET THE VALUES OF THE SELECTED CELLS
    tell sheet currentsheetindex
    set the current_table to the first table whose selection range is not missing value
    tell the current_table
    set the range_values to the value of every cell of the selection range
    set therange to every cell of the selection range
    set thecol to column of first item of therange
    set therow to row of first item of therange
    end tell
    end tell
    end tell
    end tell
    It gives me a result like
    row "30" of table "table" of sheet "sheet 1" of document "Scheduler.numbers" of application "Numbers"
    but what I need is just "30" so I can use it for my scripts. I can't figure how to convert this to a string or some other useful format.
    Can anyone help? I like Numbers but I always run into little problems like this, something I can't figure how to do, compared with other scriptable programs.

    Search forGetSelParams or better for get_SelParams in the existing threads.
    I posted this handler more than 30 times !
    Yvan KOENIG (VALLAURIS, France) vendredi 18 mars 2011 17:03:05

  • Determining the current viewId

    Hi, I need to determine the current view id, therefore I am using the following code:
    /* adf-settings.xml */
    <adf-settings xmlns="http://xmlns.oracle.com/adf/settings">
      <adfc-controller-config xmlns="http://xmlns.oracle.com/adf/controller/config">
        <lifecycle>
          <phase-listener>
            <listener-id>myPagePhaseListener</listener-id>
            <class>obasi.common.domain.myPagePhaseListener</class>
          </phase-listener>
        </lifecycle>
      </adfc-controller-config>
    </adf-settings>
    /* myPagePhaseListener */
        public void beforePhase(PagePhaseEvent pagePhaseEvent) {           
            try {           
                if (pagePhaseEvent.getPhaseId() == Lifecycle.PREPARE_MODEL_ID) {
                    for (Object child:FacesContext.getCurrentInstance().getViewRoot().getChildren())
                        if (child instanceof RichDocument)
                            System.out.println(FacesContext.getCurrentInstance().getViewRoot().getViewId());
            } catch (Exception ex)
                // ignore
        }But this doesn't seem to work accurately. Some viewId's are only "detected" after leaving a page...
    I noticed that this happens when the URL inside my browser also remains pointing to the previous page.
    Is there a way to solve this?
    Thanks in advance,
    Charles.

    Hi,
    Thanks for helping me out, Simon.
    I am not sure about what changes should be made to my web.xml in order to not have the resources as view id's.
    So here goes my web.xml - in the hope that you would be so kind to point me out where the problem lies.
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
        <description>Empty web.xml file for Web Application</description>
        <context-param>
            <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
            <param-value>client</param-value>
        </context-param>
        <context-param>
            <description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description>
            <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
            <param-value>false</param-value>
        </context-param>
        <context-param>
            <param-name>RedirectToLogin</param-name>
            <param-value>login</param-value>
        </context-param>
        <context-param>
            <description>Whether the 'Generated by...' comment at the bottom of ADF Faces HTML pages should contain version number information.</description>
            <param-name>oracle.adf.view.rich.versionString.HIDDEN</param-name>
            <param-value>false</param-value>
        </context-param>
        <filter>
            <filter-name>JpsFilter</filter-name>
            <filter-class>oracle.security.jps.ee.http.JpsFilter</filter-class>
        </filter>
        <filter>
            <filter-name>trinidad</filter-name>
            <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
        </filter>
        <filter>
            <filter-name>adfBindings</filter-name>
    <!--
            <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
    -->
            <filter-class>obasi.instel.customlogin.DynamicJDBCBindingFilter</filter-class>
        </filter>
        <filter-mapping>
            <filter-name>JpsFilter</filter-name>
            <servlet-name>Faces Servlet</servlet-name>
            <dispatcher>FORWARD</dispatcher>
            <dispatcher>REQUEST</dispatcher>
            <dispatcher>INCLUDE</dispatcher>
        </filter-mapping>
        <filter-mapping>
            <filter-name>trinidad</filter-name>
            <servlet-name>Faces Servlet</servlet-name>
            <dispatcher>FORWARD</dispatcher>
            <dispatcher>REQUEST</dispatcher>
        </filter-mapping>
        <filter-mapping>
            <filter-name>adfBindings</filter-name>
            <servlet-name>Faces Servlet</servlet-name>
            <dispatcher>FORWARD</dispatcher>
            <dispatcher>REQUEST</dispatcher>
        </filter-mapping>
        <servlet>
            <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet>
            <servlet-name>resources</servlet-name>
            <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>/faces/*</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>resources</servlet-name>
            <url-pattern>/adf/*</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>resources</servlet-name>
            <url-pattern>/afr/*</url-pattern>
        </servlet-mapping>
        <session-config>
            <session-timeout>35</session-timeout>
        </session-config>
        <mime-mapping>
            <extension>html</extension>
            <mime-type>text/html</mime-type>
        </mime-mapping>
        <mime-mapping>
            <extension>txt</extension>
            <mime-type>text/plain</mime-type>
        </mime-mapping>
    </web-app>Please note that I am using Steve Muench's DynamicJDBCCredentials (http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html #129)

  • Where do I determine the current Firmware version that's installed?

    Where do I determine the current Firmware version that's installed?
    Thanks,
    Kristin.

    Firmware updates necessary (for OS X operation) for older Macs are available at Mac OS X: Available firmware updates
    http://docs.info.apple.com/article.html?artnum=86117
     Cheers, Tom

  • How to determine the Current Domain name from inside an Mbean / Java Prog

    We have registered an Application Defined MBean. The mbean has several APIs. Now we want to determine the currrent domain using some java api inside this Mbean. Similarly we have deployed a Webapp/Service in the Weblogic domain. And inside this app we need to know the current Domain. Is there any java api that will give this runtime information.
    Note: We are the MBean providers not clients who can connect to the WLS (using user/passwd) and get the domain MBean and determine the domain.
    Fusion Applcore

    Not sure if this will address exactly what you are looking to do, but I use this technique all the time to access runtime JMX information from within a Weblogic deployed application without having to pass authentication credentials. You are limited, however, to what you can access via the RuntimeServiceMBean. The example class below shows how to retrieve the domain name and managed server name from within a Weblogic deployed application (System.out calls only included for simplicity in this example):
    package com.yourcompany.jmx;
    import javax.management.MBeanServer;
    import javax.management.ObjectName;
    import javax.naming.InitialContext;
    public class JMXWrapper {
        private static JMXWrapper instance = new JMXWrapper();
        private String domainName;
        private String managedServerName;
        private JMXWrapper() {
        public static JMXWrapper getInstance() {
            return instance;
        public String getDomainName() {
            if (domainName == null) {
                try {
                    MBeanServer server = getMBeanServer();
                    ObjectName domainMBean = (ObjectName) server.getAttribute(getRuntimeService(), "DomainConfiguration");
                    domainName = (String) server.getAttribute(domainMBean, "Name");
                } catch (Exception ex) {
                    System.out.println("Caught Exception: " + ex);
                    ex.printStackTrace();
            return domainName;
        public String getManagedServerName() {
            if (managedServerName == null) {
                try {
                    managedServerName = (String) getMBeanServer().getAttribute(getRuntimeService(), "ServerName");
                } catch (Exception ex) {
                    System.out.println("Caught Exception: " + ex);
                    ex.printStackTrace();
            return managedServerName;
        private MBeanServer getMBeanServer() {
            MBeanServer retval = null;
            InitialContext ctx = null;
            try {
                //fetch the RuntimeServerMBean using the
                //MBeanServer interface
                ctx = new InitialContext();
                retval = (MBeanServer) ctx.lookup("java:comp/env/jmx/runtime");
            } catch (Exception ex) {
                System.out.println("Caught Exception: " + ex);
                ex.printStackTrace();
            } finally {
                if (ctx != null) {
                    try {
                        ctx.close();
                    } catch (Exception dontCare) {
            return retval;
        private ObjectName getRuntimeService() {
            ObjectName retval = null;
            try {
                retval = new ObjectName("com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean");
            } catch (Exception ex) {
                System.out.println("Caught Exception: " + ex);
                ex.printStackTrace();
            return retval;
    }I then created a simply test JSP to call the JMXWrapper singleton and display retrieved values:
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page import="com.yourcompany.jmx.JMXWrapper"%>
    <%
       JMXWrapper jmx = JMXWrapper.getInstance();
       String domainName = jmx.getDomainName();
       String managedServerName = jmx.getManagedServerName();
    %>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>JMX Wrapper Test</title>
        </head>
        <body>
            <h2>Domain Name: <%= domainName %></h2>
            <h2>Managed Server Name: <%= managedServerName %></h2>
        </body>
    </html>

  • Determining the Current Tab

    I am currently on a project dealing with tabs as defined by the 3.0.9 portal.
    It is an absolute showstopper if we cannot determine which tab page a portlet is on, that is if we cannot know the identity/state of the currently rendered tab in a page.
    Either we need to know how to hook to a tab so that when it is clicked we can get some info, or we must have the state of the currently visible tab page.
    There is no apparent API for this.
    We have tried to construct a tab page monitor, but cannot attach aportlet to the page which we can guarantee will be rendered first, and therefor use that to guarantee the rest of the portlets on the page will be rendered properly.
    Once again, this is a showstopper for the client. There must be a reliable workaround for this, but we have not found it.
    Help!

    I'm concerned...
    It has been suggested that I could essentiall parse the "_pageid" variable from the current page URL to get the information about which tab is visible, by matching what I know to be the page, and tab numbers for the tabs on the page. I certainly can do that.
    Even a brute force approach such as this requires that I have access to the current Page URL.
    Perhaps I have missed something, but is there a method in PL.SQL for me to get the URL for the current page, rather than for the current portlet?
    I cannot guarantee which sequence portlets will be rendered on the page, only that they will all start and finish ( or time out ) before the page is displayed to me.
    So, Is there a method to get the Page URL( with query string attached ) between the time when it is sent (completed) to the server to be rendered, and time when the page is displayed in my browser.
    This is the time when the portlets on the page need the information to do their jobs.
    Or, is there a way to hook into the tab, and when it is pressed, set some state variable that will serve the purpose as well.
    We are using only the standard components and PL/SQL as required to promote maintenance and eventual reuse.
    null

  • A better way to determine the current state of the FLVPlayback component?

    Below is the AS3 code I have used to display images (MCs) over an instance of the FLVPlayback component.  These images (one for loading, one for the title) are to appear – or disappear – according to the current state of the FLVPlayback component. 
    It “works,” but when testing, I have noticed that it can be rather finicky.  The most common issue that arises is that many times the loadPoster movieclip will still be visible even though the video has entered the playing state.
    Also, I wanted a title placeholder image to appear whenever the user stops the video or if the video completes.  However, I had to add the conditional statement to the “stoppedStateEntered” case to make everything appear when expected.  When the video is first viewed (and has completed buffering), it seems that the FLVPlayback component enters the stopped state before entering the playing state.  Thus, the titlePoster would flash on the screen right before it and the loadPoster “should” disappear when the video begins playing.
    Even in my limited testing, these issues were very easily re-created.  I am definitely looking for a more reliable solution.  Is there a better (or more correct) way to go about all this?  If possible, I would like to stick with the FLVPlayback component, just for the simple fact of not having to code my own.
    Where am I going wrong?
    function updateMoviePoster(event:VideoEvent):void
                    switch (event.type)
                                    case "playingStateEntered":
                                                    loadPoster.visible = false;
                                                    titlePoster.visible = false;
                                    break;
                                    case "stoppedStateEntered":
                                                    if (loadPoster.visible == false)
                                                                    titlePoster.visible = true;
                                    break;
                                    case "complete":
                                                    titlePoster.visible = true;
                                    break;
    myFLVPlayback.addEventListener(VideoEvent.PLAYING_STATE_ENTERED, updateMoviePoster);
    myFLVPlayback.addEventListener(VideoEvent.STOPPED_STATE_ENTERED, updateMoviePoster);
    myFLVPlayback.addEventListener(VideoEvent.COMPLETE, updateMoviePoster);

    Any suggestions?  I would truly appreciate the help.

  • Determining the current frame/time of video

    I'm using AS2 and would like to create a function to monitor
    the current
    time of an FLV file in a swf. I'm using the swf in Director
    and using the
    format sprite (1).flvCode.flvPlay () where sprite (1) is the
    location of the
    swf, my AS2 code is in a movieClip with an instance name of
    flvCode and I
    have a function (just or illustration purposes) of flvPlay ()
    I'v looked in the AS2 reference but it's strangely absent of
    code that would
    provide the current flv time or even the duration of the flv.
    Craig

    Thanks. I'm too much of a novice to even realize that I was
    asking the same
    question.
    "Rothrock" <[email protected]> wrote in
    message
    news:g4dqhr$58e$[email protected]..
    > Like David told you in your other thread you need to
    look under the
    > class(es)
    > that you are using. Are you using the FLV playback
    component? In that case
    > you
    > need to look in the Components Language Reference.
    >
    > From there scroll down to FLBPlayback Component.
    >
    > In there the FLVPlayback Class will have a listing of
    everything that is
    > available.
    >
    > I'm thinking that FLVPlayback.playheadTime and
    FLVPlayback.totalTime are
    > probably what you want.
    >
    > If you aren't using the playback component then you most
    likely need to
    > look
    > at the ActionScript 2.0 language reference under the
    NetStream Class. In
    > that
    > case you will need the onMetaData event to capture the
    total time for the
    > FLV
    > when it loads and the time property to check the current
    position.
    >
    > So I don't know where you were looking, but there is
    plenty of code to
    > help
    > you along.
    >

  • Can you determine the current phase running?

    Is there any API which you can invoke to tell you what phase the JSF lifecycle is currently in?
    For example, suppose I have a backend bean, receiving JSF invocations. I would like to be able to tell what phase the JSF is in? for example restore views or render response?
    Any help appreciated?
    Thanks.

    A google of your question reveals your question as result number 1 and the following as result number 2:
    "JSF <= 1.2 does not provide access to the current JSF phase through the public API. Seam, however, maintains the current PhaseId in a ThreadLocal variable on the class org.jboss.seam.contexts.FacesLifecycle and exposes it through the following static method call: PhaseId currentPhaseId = FacesLifecycle.getPhaseId();"
    "In JSF 2.0, the current PhaseId will be accessible from the getCurrentPhaesId() instance method on the FacesContext. "

  • Determine the current page of pdf

    In my VI I load a pdf into an activeX container.
    I would like to be able to progammatically determine which page is currently being viewed.  I have looked throught the various property classes and method classes for the adobe pdf reader and can't find anything that will tell me what page is active.
    Does anyone have any ideas?
    Thanks,
    Torry

    Hi Torry
    looks like some of the best have been looking at this a few years ago and found it too much of and issue to deal with - suggestion would be to stop wasting time on it:
    http://forums.ni.com/t5/LabVIEW/OLE-Automation-Methods-for-Acrobat-Reader-in-ActiveX-Control/td-p/95...
    Or, if you want - here is where I have got in 5 mins following my nose (see attachment)
    Just need to get rid of navigation pane and you are sorted!!
    James
    Attachments:
    Quick PDF demo.vi ‏17 KB

  • How to find the current CPU and Memory (RAM) allocation for OMS and Reposit

    Hi There,
    How do I check the CPU and memory (RAM) allocation for the OMS and the Repository database? I'm following the "Oracle Enterprise Manager Grid Control Installation and Configuration Guide 10g Release 5 (10.2.0.5.0)" documentation and it says to ensure the following:
    Table 3-1 CPU and Memory Allocation for Oracle Management Service
    Deployment Size Host CPU/Host Physical Memory (RAM)/Host Total Recommended Space
    Small (100 monitored targets)                   1                                             1 (3 GHz)                            2 GB                                                                        2 GB
    ***Table 3-2 CPU and Memory Allocation for Oracle Management Repository***
    Deployment Size Host CPU/Host Physical Memory (RAM)/Host Total Recommended Space
    Small (100 monitored targets)                   1                                   1 (3 GHz)                                        2 GB                                                                          10 GB
    Thanks,
    J

    Hi J,
    This is the minimum requirement. However It will work fine.
    Also read below article on "Oracle Enterprise Manager Grid Control Architecture for Very Large Sites"
    http://www.oracle.com/technology/pub/articles/havewala-gridcontrol.html
    For GRID HA solution implementation please read :
    http://www.oracle.com/technology/deploy/availability/pdf/MAA_WP_10gR2_EnterpriseManagerBestPractices.pdf
    Regards
    Rajesh

  • How to determine the current user id!

    I have a table. And when the user insert record, I should insert the information about user who create this record in this table.
    Kostya!

    Here is an example of a trigger I use to populate a primary key and fetch the user
    created the record:
    CREATE OR REPLACE TRIGGER bi_my_table
       BEFORE INSERT
       ON my_table
       REFERENCING NEW AS NEW OLD AS OLD
       FOR EACH ROW
    DECLARE
       c1   NUMBER;
    BEGIN
       FOR c1 IN (SELECT my_table_seq.NEXTVAL next_val
                    FROM DUAL)
       LOOP
          :NEW.primkey := c1.next_val;
          :NEW.user_created := NVL (htmldb_application.g_user, USER);
       END LOOP;
    END;Denes Kubicek

Maybe you are looking for