Memory limitation for session object!

what is the memory limitation for using session objects?
venu

as already mentioned there is no actual memory limitation within the specification, it only depends on the jvm's settings
how different app-server handle memory management of session objects is another part of the puzzle, but in general you should not have problems in writting any object to the session.
we had the requirement once to keep big objects in session, we decided to do a ResourceFactory that returns us the objects, and only store unique-Ids into the session.
We could lateron build on this and perform special serialization tasks of big objects in the distributed environment.
Dietmar

Similar Messages

  • Standard Edition Memory Limitations

    What is the upper memory limitation for the SGA size when using Standard Edition 9.x on Windows 2000?
    What about Enterprise?

    According what I know the SGA in one OS is limited by the OS and the parameter SGA_MAX_SIZE. I have never heard that SGA has limitations related to the license.
    SGA_MAX_SIZE
    Parameter type
    Big integer
    Syntax
    SGA_MAX_SIZE = integer [K | M | G]
    Default value
    Initial size of SGA at startup, dependent on the sizes of different pools in the SGA, such as buffer cache, shared pool, large pool, and so on.
    Parameter class
    Static
    Range of values
    0 to operating system-dependent
    SGA_MAX_SIZE specifies the maximum size of SGA for the lifetime of the instance.
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96536/ch1190.htm#REFRN10198
    Joel P�rez

  • How to change heap memory size for general java applications (not applets)

    Hi. I made a java class which manipulates images and I sometimes get an out of memory error when the files are large. In these cases I can run it successfully from the command line using:
    java -Xms32m -Xmx128m myappbut as I run this class from a firefox extension, I can't use this technique.
    Could some one tell me how to set this globally? I've found a lot of info on setting it for applets in the control panel but that's it. I also tried editing my deployment.properties file by adding:
    deployment.javapi.jre.1.6.0_11-b03.args=-Xmx128mbut none of these options seem to work.
    Thanks for any help.

    Also you can use use [JAVA_TOOL_OPTIONS|http://java.sun.com/j2se/1.5.0/docs/guide/jvmti/jvmti.html#tooloptions], with more documentation here. JAVA_TOOLS_OPTIONS is available since 1.5. There is no direct documentation on [_JAVA_OPTIONS|http://java.sun.com/j2se/1.5.0/docs/guide/2d/flags.html] but was made available since at least 1.3.
    The recent existing forum thread [Java Programming - How to change the default memory limits for java.|http://forums.sun.com/thread.jspa?threadID=5368323&messageID=10615245&start=36] has a long discussion on the issue.
    You specified you are not using applets, but if you do, I would also suggest you use the next Generation Plug-in (since 1.6.0_10) that allows you specify the max memory in the applet without having to instruct the user how to make the change. See [JAVA_ARGUMENTS|https://jdk6.dev.java.net/plugin2/#JAVA_ARGUMENTS] for applets. Java Webstart uses resources.

  • How to get Multiple Values for a key from a session object?

    Hi,
    It might seem dumb but I am facing a problem here with the session object. I'll paste the session object's content from the netbeans "Local Variables" window for clarity -
    Name Type Value
    hsession StandardSessionFacade #66
    session LWSFSession #69
    inherited
    attributes Hashtable #80
    [0] Hashtable$Entry "cart"=>#115
    key String "cart"
    value DummyCart #115
    item null
    submit null
    v Vector
    [0] String Full Metal Jacket
    [1] String As Good As It Gets
    [2] String Tim
    What I want is to get the values "Full Metal Jacket", "As Good As It Gets" and "Tim" from the session obejct?
    The problem I am facing is that if I do a session.getAttribute("cart"), I'll get a single value in return. What will that value be? Will it be "item", "submit" or "v"? And if I want all the values in v above, how can I get them?
    Thanks.

    None of the above.
    HttpSession.getAttribute() will return what you put into it using HttpSession.setAttribute(). In your case, it'll return an Object which you need to cast to DummyCart. Then you can access the data in DummyCart using the API of the DummyCart class.
    hth

  • Is there any limitation of memory uses for apps in iPad2 or iPad3 ?

    Hi,
       Is there any limitation of memory uses for apps in ipad2 or ipad3 .For example an application can use 10% or 20% of available memory , is there anything like that or the apps can use the total available memory or like 90% of it ?
    I want to know about the memory distribution to the apps in ios .
    Would anyone suggest a right way ?
    Thanks

    iOS manages all memory. You should test your app in Instruments to be sure it is playing nice.
    See Advanced Memory Management Programming Guide

  • Limitation on Session Size (8K) with Clustering

              Hi.
              Is there a limitation on the session size for a clustered environment. i'm not
              sure whether its true or not. can anyone please clarify. Also is it for the entire
              session object or per user.
              Thanks
              Nitesh
              

    There is no limit as such. The only limit imposed depends on the heap allocated for
              the JVM.
              Nitesh wrote:
              > Hi.
              >
              > Is there a limitation on the session size for a clustered environment. i'm not
              > sure whether its true or not. can anyone please clarify. Also is it for the entire
              > session object or per user.
              >
              > Thanks
              >
              > Nitesh
              Rajesh Mirchandani
              Developer Relations Engineer
              BEA Support
              

  • Does replication group have to be set for session replication

    I have delployed an servlet based application on a 3 node cluster. I have a simple POJO that I use to carry data in the session from a "confirm?" to "confirmed" page. This object implements serializable and only has String and int members. I put it in session using request.getSession().setAttribute("dto", myobject). For some reason it is not being replicated to the other nodes in the cluster. My weblogic.xml has "PersistentStoreType" set to "replicated_if_clustered". I am not seeing any serialization or other errors in the node logs.
              I have looked at information contained in the link below and I think we are doing everything right. http://support.bea.com/application_content/product_portlets/support_patterns/wls/HTTP_Session_Replication_Failures_Pattern.html
              The only thing that I noticed is that the "Replication Group" is not set for any of the servers in the cluster. Does this need to be set for replication to happen?

    Hi,
              Having replication group is optional. It is used only if you are implementing failover in cluster. For session replication one has to generally configure 3 things:
              - in memory replication
              - jdbc replication
              - file sytem replication
              for im memory replication,
              Step 1:
              make sure taht a client is accesing the cluseter using either
              - load balancing hardware
              - web servers with weblogic proxy plugin
              Step 2:
              specify the persistance type in weblogic.xml
              Thanks,
              Sushma

  • How to use session object in windows application

    hi, I am programming in jdeveloper. i need to know that while i m making a web application i can use a session object for the particular session. now i m builiding a windows application for my final semester and i need to insert product id and then it should go to another frame and there it can store multiple information for a particular product id.
    e.g
    product id : 001
    next frame.
    filter name.
    filter position.
    when these are added then it should be able to add more filters for the same product id and i dont understand how to do that.
    Please let me know as i am lost and dont know how to proceed further. if some body wants to have a look on the codes he is most welcome.
    Waiting for an answer
    thank you

    Hi,
    in Swing applications you don't have a session object to store data. You can use a helper class though to act as a temporary memory. Just create a static class that has a hashtable method to add / read / remove data
    Frank

  • PGA Limits for 11.1.0.7 on AIX 6.1

    With an 11gR1 Database running under AIX I have the Impression, that requests for pga memory get an ORA-04030 too early. In the following statements there is a skript, that consumes more an more pga memory. It always stops when ~ 113MB of pga are consumed, but there should be posssible much more in my opinion. I shut down other database instances on the same server, I increased ulimit for rss and stack but the result is always the same. After the skript the 'session pga memory max' for my SID is 113MB.
    Why is more pga cosumption not possible?
    select name, to_number(value)/1024 KB
    from v$parameter
    where name like 'pga%'
    or name like 'memory%'
    or name like 'sga%';
    NAME KB
    sga_max_size 3,670,016
    sga_target 3,670,016
    memory_target 4,620,288
    memory_max_target 6,291,456
    pga_aggregate_target 950,272
    create table temp_pga as
    select * from v$pgastat;
    select n.name, sum(t.value)/1024 KB
    from v$sesstat t,
    v$statname n
    where n.statistic# = t.statistic#
    and n.name in ('session pga memory', 'session pga memory max', 'session uga memory', 'session uga memory max')
    group by n.name
    order by 1;
    NAME KB
    session pga memory 65,484
    session pga memory max 160,590
    session uga memory 25,379
    session uga memory max 68,069
    select
    s.sid,
    n.name,
    sum(t.value/1024) KB
    from
    v$statname n,
    v$session s,
    v$sesstat t
    where
    s.sid=t.sid
    and n.statistic# = t.statistic#
    and s.audsid = SYS_CONTEXT('userenv','sessionid')
    and n.name in ('session pga memory', 'session pga memory max', 'session uga memory', 'session uga memory max')
    group by
    s.sid, n.name
    order by 2;
    SID NAME KB
    94 session pga memory 1,832
    94 session pga memory max 2,536
    94 session uga memory 616
    94 session uga memory max 1,240
    declare
    type array is table of long index by binary_integer;
    l_data array;
    begin
    loop
    l_data(l_data.count+1) := rpad('*',32000,'*');
    end loop;
    end;
    FEHLER in Zeile 1:
    ORA-04030: Zu wenig Prozessspeicher für Versuch 32712 Bytes zuzuweisen (koh-kghu call ,pl/sql vc2)
    select n.name, sum(t.value)/1024 KB
    from v$sesstat t,
    v$statname n
    where n.statistic# = t.statistic#
    and n.name in ('session pga memory', 'session pga memory max', 'session uga memory', 'session uga memory max')
    group by n.name
    order by 1;
    NAME KB
    session pga memory 77,988
    session pga memory max 291,431
    session uga memory 32,088
    session uga memory max 77,023
    select
    s.sid,
    n.name,
    sum(t.value/1024) KB
    from
    v$statname n,
    v$session s,
    v$sesstat t
    where
    s.sid=t.sid
    and n.statistic# = t.statistic#
    and s.audsid = SYS_CONTEXT('userenv','sessionid')
    and n.name in ('session pga memory', 'session pga memory max', 'session uga memory', 'session uga memory max')
    group by
    s.sid, n.name
    order by 2;
    SID NAME KB
    94 session pga memory 1,384
    94 session pga memory max 113,832
    94 session uga memory 616
    94 session uga memory max 1,240
    select n.name, v.value before, n.value after, n.unit
    from
    v$pgastat n,
    temp_pga v
    where n.name = v.name
    order by n.unit, n.name;
    NAME BEFORE AFTER UNIT
    aggregate PGA auto target 819,505,152 715,511,808 bytes
    aggregate PGA target parameter 973,078,528 973,078,528 bytes
    bytes processed 21,978,394,624 22,010,895,360 bytes
    extra bytes read/written 1,066,005,504 1,066,005,504 bytes
    global memory bound 104,857,600 104,857,600 bytes
    maximum PGA allocated 454,460,416 454,460,416 bytes
    maximum PGA used for auto workareas 106,148,864 106,148,864 bytes
    maximum PGA used for manual workareas 0 0 bytes
    PGA memory freed back to OS 9,104,392,192 9,222,684,672 bytes
    total freeable PGA memory 48,103,424 52,101,120 bytes
    total PGA allocated 143,251,456 164,831,232 bytes
    total PGA inuse 64,303,104 77,556,736 bytes
    total PGA used for auto workareas 1,277,952 1,529,856 bytes
    total PGA used for manual workareas 0 0 bytes
    cache hit percentage 95 95 percent
    max processes count 82 82
    over allocation count 0 0
    process count 49 63
    recompute count (total) 5,239 5,240

    I found my problem. After changing the ulimit parameters for the oracle user I didn't restart the listener, only the database.
    As new client connections inherit their limits from the listener process the old values were still valid.

  • Measure http session objects

    Hi,
    I repost this message in hope someone could help me in SEEING it :
    i am looking for some code (if any exists) to do metrics on what is really hold in the http session :
    how can i get info on :
    1. nb of user sessions actually in memory
    2. for a given session, what is the size of all objects in the session
    This can help in sizing server memory.
    Perhaps there is some servletinfo utility somewhere that i can reuse.
    Thanks
    HYA

    I don't know what kind of container you are running your application in, but some have tools for analyzing the performance and memory management of the container. For example Oracle's Enterprise Manager for Oracle's containers for Java (OC4J), lets you see these things. I'm not sure if other servers like Tomcat provide the same thing, but you might want to look into that. Hope that helps.
    Galen

  • Memory limitation on T61

    I have the following Lenovo notebook :
    Product: ThinkPad T61 8898-55G [change]
    Operating system: All [change]
    Original description: T7100(1.8GHz), 1GB RAM, 120GB 5400rpm HD, 14.1in 1024x768 LCD, Intel X3100, CDRW/DVDRW, Intel 802.11abg wireless, Bluetooth, Modem, 1Gb Ethernet, UltraNav, Secure chip, Fingerprint reader, 4c Li-Ion, WinVista Business 32
    I configured my Notebook with a Dual-boot Windowx XP Pro SP3 and Windows Vista Bussines SP1 (32 bit)
    I have 2x 512 MB PC2-5300 667 MHz DDR2 memory inside.
    I read on the Lenovo site :
     Memory Compatibility
    (**) Windows Vista supports up to 4GB maximum memory (32-bit versions of Windows Vista cannot support 4GB). Windows XP supports up to 3GB maximum memory
    I like to update my memory with
    2x 40Y7734 1 GB PC2-5300 667 MHz DDR2 
    or
    2x 40Y7735 2 GB PC2-5300 667 MHz DDR2
    I like to know if I choose for 2x 2GB , will :
    Windows XP SP3 work just fine only it works with 3GB instead of 4GB installed memory
    Window Vista SP1 (32-bit) with the 4GB (even not supported) work stable ?
    Because the prices of 1 GB and 2 GB won't change much nowadays.
    I prefer to use 2x 2GB modules, but I like to know will it work (even with the memory limitation) stable on XP or on Vista
    or it is better/safer to use 2x 1GB modules
    Can anybody help/explain me or advice me ? 
    Electronic
    Message Edited by electronic on 01-16-2009 09:51 PM

    You're better off with 2x2GB, you may decide to run a 64-bit OS someday...and you will notice a difference between 2GB and 3GB when running a 32-bit OS.
    Cheers,
    George
    In daily use: R60F, R500F, T61, T410
    Collecting dust: T60
    Enjoying retirement: A31p, T42p,
    Non-ThinkPads: Panasonic CF-31 & CF-52, HP 8760W
    Starting Thursday, 08/14/2014 I'll be away from the forums until further notice. Please do NOT send private messages since I won't be able to read them. Thank you.

  • Memory upgrade for KM3M-V mobo (aka MS 7061-01S)

    Hi, this is my first post. I've read the guidelines and searched for an existing topic but can't find one that quite matches what I want to ask, so I'm posting a new topic - please forgive me I have erred!
    I have a TIME Computers desktop (please don't ask why), mobo being a MSI KM3M-V (also known as MS7061-01S), which is based on VIA KM266 chipset.  CPU = Sempron 2400+. 
    I've just installed a new graphics card, an ATI All-in-Wonder 9200SE, with associated drivers and software including Catalyst (which menat I had to instal MS .net framework too).  This seems to be working OK but overall speed not great. (Also, for some reason I don't seem to be getting any sound at all, but I expect I can fix that with a bit of trail and error.)
    My next step is to increase the memory. Existing memory installed is one 256MB UDIMM module, but I'm aiming to remove it and instal 2 x 1GB UDIMM modules, which I know the mobo can take.  Naturally I'm looking to get the maximum available performance (subject to stability considerations), so I'm looking to go for the highest bandwidth/speed the system can take.  This is where it gets tricky.  Having searched Crucial, Kingston and other memory configurators plus various other tech articles and indeed MSI's own website, I've reached the conclusion that I can select memory in PC2100/ 2700/ etc up to 4000 or even higher provided that the maximum memory chip size (density) does not exceed 128MB. 
    But I'm not sure about the speed limitation: is there any point in buying DIMMs capable of DDR333 or 400 - will my chipset limit the speed to 266MHz anyway?  I'll be grateful for any expert views.
    Operating System: Windows XP Home Edition (5.1, Build 2600) Service Pack 2 (2600.xpsp_sp2_rtm.040803-2158)
               Language: English (Regional Setting: English)
    System Manufacturer: Time Computers
           System Model: KM266-8237
                   BIOS: Phoenix - AwardBIOS v6.00PG
              Processor: AMD Sempron(tm)   2400+,  MMX,  3DNow, ~1.7GHz
                 Memory: 192MB RAM
              Page File: 135MB used, 331MB available
            Windows Dir: C:\WINDOWS
        DirectX Version: DirectX 9.0c (4.09.0000.0904)
    DX Setup Parameters: None
         DxDiag Version: 5.03.2600.2180 32bit Unicode

    Thanks for the quick reply, Exo.  I agree with you 100% that it's best to go for (at least) PC3200 with a view to a likely future upgrade.  As I see it, it makes sense to go for the highest spec available at reasonable cost - so I would probably aim for PC4000 rather than 3200.  There doesn't seem to be any downside in doing so (provided one is happy to tweak the BIOS where necessary), and even the MSI MOBO spec seems to endorse this view - see bit picked out in red below:
    http://www.msicomputer.com/product/p_spec.asp?model=KM3M-V&class=mb
    Main Memory
      • Supports four memory banks by using two 184-pin DDR DIMMs
    • Supports a maximum memory size of 2GB.
    • Supports 2.5v DDR SDRAM DIMM
    Due to the High Performance Memory design, motherboards or system configurations may or may not operate smoothly at the JEDEC (Joint Electron Device Engineering Council) standard settings (BIOS Default on the motherboard) such as DDR voltage, memory speeds and memory timing. Please confirm and adjust your memory setting in the BIOS accordingly for better system stability.
    Example: Kingston HyperX DDR500 PC4000 operates at 2.65V, 3-4-4-8, CL=3.
    For more information about specification of high performance memory modules, please check with your Memory Manufactures for more details. 

  • How to get Request/Session objects in a Webdynpro application

    Hi
    I am working in Enterprise Portal 7.0.
    in one of the iViews which displays a JSP page, i have set a parameter in request and session objects.
    How can i get it in my Webdynpro ABAP Application?
    Thanks & Regards
    Abhimanyu L

    hi Abhimanyu
    I believe originally access to session was deliberately not made available inside WDA.
    Growing security concerns due to misuse of session information and
    perhaps other reasons as well.
    X.509  is considered a better approach.
    This may not help you in your problem.
    But you may see a trend in WDA pushing more robust and client independent
    approaches.
    Full x.509 access should remove the need for session fiddling.
    Also when developers access such session info directly, there is a possiblity
    when they dont understand the technology exactly that they create a security hole.
    You may know how to do safely, it is however discouraged.
    Im not aware of a way to get at the session info inside the WDA framework.
    Well not without a mod to the framework.
    It may be possible without a mod, but I dont know the trick.
    If someone has a little trick... please post.
    You may need to use BSP, if your only solution requires access to the session info.
    regards
    Phil

  • Can a Servlet be used for Storing Objects with both JSP and JSF used on it?

    Hi,
    Pages I have:
    SearchEmployee.jsp
    This page has a search engine that search out the Employee. This Employee Object will be stored inside a Servlet(controller) for future references by other pages. I used JSP, html tags for forms, and request.getParameter() to built this search engine.
    Problem:
    I have a JSF Form that wants to DISPLAY the employee which I have found in my Search Engine. How can I get the JSF's value="#{Controller.employeeObj.name}" to get the value from the object?
    This seems logical as my JSF form is just retrieving the stored object in the Controller. I currently cant seem to output it

    The servlet shouldn't be used to store ANY data, let alone data to be accessed by other sevlets. Put the object into the Session object.

  • How to find multiple transport requests for one object

    Hi all,
    Is there any function module which will fetches multiple transport requests ( if created ) for one object.I tried almost all the function modules , but i didn't got the solution.
    I need to develop a report ,   which will takes a single Task number as input and gets the Request number from table E070.
    Based on that Request Number i will fetch remaining Task numbers under it.
    Then for all the Tasks Numbers, i am fetching their  objects by using table E071.
    I need to list out  whether any of these objects are in multiple Transport Requests. Once i got all the Transport Request numbers i need to release the Request based on their Transport Request sequence.
    I tried the following FM's , but not able to get the solution.
    SVRS_DISPLAY_VERSION_LIST
    SVRS_GET_VERSION_DIRECTORY_46
    SVRS_GATHER_REQUEST_FRAGS
    Thanks..

    Hello
    I have tried with below code
    DATA list_tab TYPE TABLE OF abaplist.
    SUBMIT RSWBO040 USING SELECTION-SET 'TEST'
                    EXPORTING LIST TO MEMORY
                   AND RETURN.
    CALL FUNCTION 'LIST_FROM_MEMORY'
       TABLES
         listobject = list_tab
       EXCEPTIONS
         not_found  = 1
         OTHERS           = 2.
    IF sy-subrc = 0.
       CALL FUNCTION 'WRITE_LIST'
         TABLES
           listobject = list_tab.
    ENDIF.
    break-point.
    Submitting the program(RSWBO040) of SE03 transaction a will result in 'CNTL_ERROR' dump.
    Please try some other options
    Thanks

Maybe you are looking for