Jinitiator Question - JAR Cache Size Location

Using Jinitiator 1.3.1.22 - on Windows 2000 Pro
Does anyone know where this setting is stored on the PC when set in the Java Console? I have looked at the properties121222 in the .jinit folder under the User profile in Docs and Settings and it isn't in there!

Thanks Francois...I know that bit. I want to know where the value for the default is actually derived from for my installation. According to the Forms Services Deployment Guide 'The default cache size for Oracle JInitiator is 20000000. This is set for you when you install Oracle JInitiator.'
If you override the default in the Jini Configuration Panel, it's value will appear in a text file in the users .jini folder. Where is it held before that?!
When Jini is installed at my workplace, the default for the JAR cache is 50mb. No one knows why and how it differs from what the documentation states! This is what I am trying to get to the bottom of!

Similar Messages

  • Define location for "Oracle Jar Cache" of jinitiator

    Hello,
    I'd like to know is it posible to define the location of Oracle Jar Cache with some parameters like installing in silent mode....
    This problems has occured because we have for users files home directory on network file server and jinitiator automaticlly put Oracle Jar Cache on file server.
    For Example i'd like to have C:\Oracle Jar Cache
    regards,
    Tilen
    Message was edited by:
    Ttreven

    If you change the location of the jar cache via the console the location entry is written into a file in your local profile:
    Directory
    .jinit (for JInitiator)
    .java (for Java Plug-In)
    File
    properties<version_of_JInitiator or Java Plug-In>.
    Only modified entries are written to this file (otherwise the default is valid).
    You can modify this file programmatically after installation or possibly during installation process.

  • Rollout of Jinitiator - setup of Oracle Jar Cache

    Hi,
    We are planning an upgrade of Oracle e-business suite from 11.5.10.1 to 11.5.10.CU2 and with this we will also be upgrading our version of Jinitiator to 1.3.1.28. By default, the location of the Oracle Jar Cache is something like:
    C:\Documents and Settings\%NETWORK_NAME%\Oracle Jar Cache
    My question is: Is there a method whereby we can modify this default setting to something else, e.g. C:\temp\Oracle Jar Cache before we download the oajinit.exe to each individual pc. Ideally, I would like to configure this before the download and have the users simply download the oajinit.exe the first time they logon to 11.5.10.CU2. I appreciate that there are other ways that we can distribute the oajinit.exe to each users PC but just wondered if it was possible to configure the location of the Oracle Jar Cache before distributing.
    Thanks for any help you can give.
    Regards,
    Calum

    Check Note: 290592.1 - How To Customize Oracle Jinitiator Options Prior To Deployment?
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=290592.1

  • Question of Berkeley DB "cache size"

    quote:
    Set the size of the shared memory buffer pool, that is, the size of the cache.
    The cache should be the size of the normal working data set of the application, with some small amount of additional memory for unusual situations. (Note: the working set is not the same as the number of pages accessed simultaneously, and is usually much larger.)
    The default cache size is 256KB, and may not be specified as less than 20KB. Any cache size less than 500MB is automatically increased by 25% to account for buffer pool overhead; cache sizes larger than 500MB are used as specified. The current maximum size of a single cache is 4GB. (All sizes are in powers-of-two, that is, 256KB is 2^18 not 256,000.)
    The database environment's cache size may also be set using the environment's DB_CONFIG file. The syntax of the entry in that file is a single line with the string "set_cachesize", one or more whitespace characters, and the cache size specified in three parts: the gigabytes of cache, the additional bytes of cache, and the number of caches, also separated by whitespace characters. For example, "set_cachesize 2 524288000 3" would create a 2.5GB logical cache, split between three physical caches. Because the DB_CONFIG file is read when the database environment is opened, it will silently overrule configuration done before that time.
    This method configures a database environment, including all threads of control accessing the database environment, not only the operations performed using a specified Environment handle.
    This method may not be called after the environment has been opened. If joining an existing database environment, any information specified to this method will be ignored.
    This method may be called at any time during the life of the application.
    Parameters:
    cacheSize The size of the shared memory buffer pool, that is, the size of the cache.
    The question:
    When I have a host, the memory total is 16G.
    I don't know what mean of this document.
    How many max cache size can be set ?
    4G? 16G?
    or cacheCount (4)* 4G = 16G?
    My Email: [email protected]

    What version of Berkeley DB are you using?
    I'm a little confused about what you are quoting. Most of your quote seems to be from DB_ENV->set_cachesize(), but set_cachesize does not have a parameter named cacheSize. The parameters for set_cachesize are gbytes, bytes and ncache.
    You use set_cachesize to specify the logical cache that you can optionally split into more than one physical region. The maximum size of the logical cache is 4GB and there is only one logical cache. You specify the total size of the logical cache with the gbytes and bytes parameters. If you set ncache to a value greater than 1, you split this logical cache into separate physical regions. So, for example, if you specify (gbytes=2, bytes=0, ncache=1) you will have a logical cache of 2GB that internally is split into 2 separate physical regions of 1GB each.
    You can read more about the memory pool cache in the Reference Guide sections "Selecting a cache size" and "Configuring the memory pool".
    If you have other Berkeley DB questions that are not specific to replication, you should direct them to the general Berkeley DB forum where you will have the benefit of a wider set of Berkeley DB experts:
    Berkeley DB
    Paula Bingham
    Oracle

  • How to reduce configuration cache file Quota size located in ( C:\Windows\ccmcache ) for all client from SCCM 2012 server

    How to reduce configuration cache file Quota size located in ( C:\Windows\ccmcache ) for all client from SCCM 2012 server
    Thanks in Advance
    NTRao

    Hi,
    There are numerous ways to change the cache size.
    You could deploy a vbscript to a collection of the devices.
    On Error Resume Next
    Dim UIResManager
    Dim Cache
    Dim CacheSize
    CacheSize=20000
    Set UIResManager = createobject("UIResource.UIResourceMgr")
    Set Cache=UIResManager.GetCacheInfo()
    Cache.TotalSize=CacheSize
    Or you could use a configuration item.
    http://blog.coretech.dk/heh/configuration-items-and-baselines-using-scripts-powershell-example/
    You can also use the right click tools by Now Micro on a collection, if all the servers are on this would be the easiest / quickest way.
    http://www.nowmicro.com/recast/right-click-tools/
    http://www.david-obrien.net/2013/02/how-to-configure-the-configmgr-client/
    select SMS_R_SYSTEM.ResourceID, SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name, SMS_R_SYSTEM.SMSUniqueIdentifier, SMS_R_SYSTEM.ResourceDomainORWorkgroup, SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.OperatingSystemNameandVersion like '%6.2%'
    https://msdn.microsoft.com/en-us/library/windows/desktop/ms724832%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396

  • Cache size question...

    howdy,
    just a quick one.
    i've noticed in the new firefox (1.5) there is an option in preferences to limit the cache size. however, there seems to be no option in safari.
    :: is there a method to set the cache size in safari? ::
    any info is greatly appreciated.
    cheers...
    ryan

    ryan,
    I am Terminally challenged, so I use CLIX and it has both Caches Off/Caches On for Safari.
    I do not see a command for setting a cache limit.
    Caches Off (rm -fr ~/Library/Caches/Safari;ln -s /dev/null ~/Library/Caches/Safari)
    Caches On (rm ~/Library/Caches/Safari)
    ;~)

  • Does buffer cache size matters during imp process ?

    Hi,
    sorry for maybe naive question but I cant imagine why do Oracle need buffer cache (larger = better ) during inserts only (imp process with no index creation) .
    As far as I know insert is done via pga area (direct insert) .
    Please clarify for me .
    DB is 10.2.0.3 if that matters :).
    Regards.
    Greg

    Surprising result: I tried closing the db handles with DB_NOSYNC and performance
    got worse. Using a 32 Meg cache, it took about twice as long to run my test:
    15800 seconds using DB->close(DB_NOSYNC) vs 8200 seconds using DB->close(0).
    Here is some data from db_stat -m when using DB_NOSYNC:
    40MB 1KB 900B Total cache size
    1 Number of caches
    1 Maximum number of caches
    40MB 8KB Pool individual cache size
    0 Maximum memory-mapped file size
    0 Maximum open file descriptors
    0 Maximum sequential buffer writes
    0 Sleep after writing maximum sequential buffers
    0 Requested pages mapped into the process' address space
    26M Requested pages found in the cache (70%)
    10M Requested pages not found in the cache (10811882)
    44864 Pages created in the cache
    10M Pages read into the cache (10798480)
    7380761 Pages written from the cache to the backing file
    3452500 Clean pages forced from the cache
    7380761 Dirty pages forced from the cache
    0 Dirty pages written by trickle-sync thread
    10012 Current total page count
    5001 Current clean page count
    5011 Current dirty page count
    4099 Number of hash buckets used for page location
    47M Total number of times hash chains searched for a page (47428268)
    13 The longest hash chain searched for a page
    118M Total number of hash chain entries checked for page (118169805)
    It looks like not flushing the cache regularly is forcing a lot more
    dirty pages (and fewer clean pages) from the cache. Forcing a
    dirty page out is slower than forcing a clean page out, of course.
    Is this result reasonable?
    I suppose I could try to sync less often than I have been, but more often
    than never to see if that makes any difference.
    When I close or sync one db handle, I assume it flushes only that portion
    of the dbenv's cache, not the entire cache, right? Is there an API I can
    call that would sync the entire dbenv cache (besides closing the dbenv)?
    Are there any other suggestions?
    Thanks,
    Eric

  • Where's  the jar cache in Discoverer 10.1.2?

    Hi friends.. I'm trying to tind where the jar cache directory .. but I can't locate it...
    Not in my Windows PC..(by the way.. I haven't a jcache directory in my Program Files/Oracle/Jinitiator 1.3.1.31 folder), I mean in apps Linux server...
    Any ideas?
    I suppose that when notes talk about clear/delete jar cache directory for Discoverer they don't mean the COMMON_TOP/... directory... but i don't know exactly.
    Thanks,
    Jose L.

    Jose,
    The jar cache will be in the individual PC and will depend upon if you are using the Jinitiator or Sun JVM.
    Discoverer 10g uses Sun JVM by default unless you have configured Jinitiator.
    Any easy way to check is: Navitagate to: Start >> Control Panel >> Java (for SunJVM) >> General tab >> settings button (under Temporary Internet files)
    It will be something like (for 1.5 plugin)
    C:\Documents and Settings\<username>\Application Data\Sun\Java\Deployment\cache
    Similar steps for Jinitiator, but it will be under the 'cache' tab
    C:\Documents and Settings\<username>\Oracle Jar Cache
    You can also search your PC for files to fine the location.
    disco5i.jarjar*
    If a note tells you to clear the jar cache, then it is on the client PC.
    I had an old MetaLink note 367389.1 bookmarked that has some navigation steps and screen shots for you.
    Regards,
    Steve.

  • Possible to check in Java, if if a package is already in the jar-Cache?

    I have an applet, that has only one main.jar in the Cache-Archive parameter.
    Because I wanted to reduce the preload-Time, since 1.4.0 I use an index.list file, listing
    the rest of jar-Files needed for my applet. So the jar-Files will be only
    downloaded to the time, they are needed, if they aren't already in the jar-cache.
    The Problem: If the applet needs a new jar-File, that isn't in the jar-Cache, it needs
    time to download the package. But the user doesn't see that something happens.
    Is it possible to check with JAVA in the applet, if a package is already in the jar-Cache?
    If i know this, I'll be able to show the user that the applet is currently downloading a package.

    do u mean a file in the JAR?
    if yes, yes u can check that.
    check this,
        public ImageIcon loadImage(String location)
    java.net.URL url =  null;
    url = getClass().getResource(location);
    if (url == null) then ...
        } 

  • Default view size/location for files in Preview?

    Hello,
    This is probably a stupidly simple question, but is there a way to set the default location and size of all pdf files opened in preview?
    I know how easy it is to set window parameters in the finder: simply resize the window before closing and it remembers the new size/location. Preview will remember the location when the app remains open, yet when I quit the program and open the same PDF file again, its back in its original location, which somehow got set off center on my 2nd monitor so it cannot be read without constantly adjusting upon opening. (example: http://www.avartists.com/Picture.gif
    As you can imagine this can get VERY annoying. Any help in fixing this issue would be greatly appreciated! Thanks in advance for your help.

    Deleting the plist file had no effect whatsoever with my Preview. You can try it if you want. If you have custom settings of various sorts you can just move the plist file to the Desktop, then start Preview. If the annoying behavior is gone then you can toss the file on the Desktop and keep the new plist file. If it still behaves the same way and you want whatever preferences you had set before, just quit Preview and move your original file back, say yes to the "replace dialogue" and you're back where you were.
    Francine--who obviously has spent way too much time on stuff like this!
    Francine
    Schwieder

  • In EJB3 entities, what is the equiv. of key-cache-size for PK generation?

    We have an oracle sequence which we use to generate primary keys. This sequence is set to increment by 5.
    e.g.:
    create sequence pk_sequence increment by 5;
    This is so weblogic doesn't need to query the sequence on every entity bean creation, it only needs to query the sequence every 5 times.
    With CMP2 entity beans and automatic key generation, this was configured simply by having the following in weblogic-cmp-rdbms-jar.xml:
    <automatic-key-generation>
    <generator-type>Sequence</generator-type>
    <generator-name>pk_sequence</generator-name>
    <key-cache-size>5</key-cache-size>
    </automatic-key-generation>
    This works great, the IDs created are 10, 11, 12, 13, 14, 15, 16, etc and weblogic only needs to hit the sequence 1/5 times.
    However, we have been trying to find the equivalent with the EJB3-style JPA entities:
    We've tried
    @SequenceGenerator(name = "SW_ENTITY_SEQUENCE", sequenceName = "native(Sequence=pk_sequence, Increment=5, Allocate=5)")
    @SequenceGenerator(name = "SW_ENTITY_SEQUENCE", sequenceName = "pk_sequence", allocationSize = 5)
    But with both configurations, the autogenerated IDs are 10, 15, 20, 25, 30, etc - weblogic seems to be getting a new value from the sequence every time.
    Am i missing anything?
    We are using weblogic 10.3

    If you are having a problem it is not clear what it is from what you have said.  If you have sugestions for improving some shortcomings you see in Flash CC then you should submit them to:
    Adobe - Wishlist & Bug Report
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • 1.4.2_01 and 1.4.1_01 jar cache doesn't seem to be working

    I am having a hard time getting the .jar cache to work with the 1.4.2_01 and 1.4.1_01 plugins.
    Here is my applet:
    ====================================================================
    import java.applet.Applet;
    import java.awt.*;
    public class TestApplet extends Applet {
         public void init() {
    setLayout(new BorderLayout());
              setForeground(Color.blue);
              setBackground(Color.white);
         Label label = new Label();
    String resourcePath = "/" + this.getClass().getName().replace('.','/') + ".class";
    String source =this.getClass().getResource(resourcePath).toString();
    System.out.println(source);
    label.setText(source);
              add(label,BorderLayout.CENTER);
    ====================================================================
    You will need to compile this class and put it in a TestApplet.jar file in the same directory that the html file is in. Delete TestApplet.class just for good measure.
    And here is the html that loads it up:
    ====================================================================
    <HTML>
    <BODY>
    <APPLET CODE="TestApplet" NAME="TestApplet" WIDTH="750" HEIGHT="50" CODEBASE="." >
    <PARAM NAME="cache_archive" VALUE="TestApplet.jar">
    <PARAM NAME="cache_version" VALUE="1.1.1.2">
    <PARAM NAME="cache_option" VALUE="Plugin">
    </APPLET>
    </BODY>
    </HTML>
    ====================================================================
    Now, I hope that I'm missing something really stupid here, but when I run this with the 1.3 plugin, the applet clearly states that the class file is loaded from the cached .jar file. For example, it prints out that the class file was loaded from:
    jar:file:/C:/WINNT/Profiles/xxxx/java_plugin_AppletStore/1.3.1_09/jar/TestApplet.jar19890069901.1.1.22036068943678200358.jar!/TestApplet.class
    But when I run this code with the 1.4.2_01 or 1.4.1_01 plugin I get this:
    jar:http://localhost/TestApplet.jar!/TestApplet.class
    and my access log files show this file getting loaded over and over and over again. Using the cached_archive_ex param doesn't help either.
    This is a over simplified example of a problem that is forcing my huge applet to run at 1/3 to 1/4 the speed that it should because of class loader thrashing due to excessing jar file loading.
    Have I missed something obvious?
    Thanks
    Andy

    Hi,
    i don't know but i encountered the same caching problems when plugin version 1.4.2_01 is used.
    Facts:
    -> jar Size: 1MB
    -> Added Parameters:
    <PARAM NAME="cache_archive" VALUE="xxxx">
    <PARAM NAME="cache_version" VALUE="4.1.1.266">
    <PARAM NAME="cache_option" VALUE="Plugin">
    -> Cache is set to unlimited
    No matter if jar-File is already stored in the cache the parameter "Cache-Control: no-cache" is set in the HTTP-Header.
    I have not found anything preventing this yet.
    Cheers
    Thomas

  • Java.sql.SQLException: Statement cache size has not been set

    All,
    I am trying to create a light weight SQL Layer.It uses JDBC to connect to the database via weblogic. When my application tries to connect to the database using JDBC alone (outside of weblogic) everything works fine. But when the application tries to go via weblogic I am able to run the Statement objects successfully but when I try to run PreparedStatements I get the following error:
    java.sql.SQLException: Statement cache size has not been set
    at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:138)
    at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_OracleConnection_812_WLStub.prepareStatement(Unknown Source)
    i have checked the StatementCacheSize and it is 10. Is there any other setting that needs to be implemented for this to work? Has anybody seen this error before? Any help will be greatly appreciated.
    Thanks.

    Pooja Bamba wrote:
    I just noticed that I did not copy the jdbc log fully earlier. Here is the log:
    JDBC log stream started at Thu Jun 02 14:57:56 EDT 2005
    DriverManager.initialize: jdbc.drivers = null
    JDBC DriverManager initialized
    registerDriver: driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@12e0e2f]
    DriverManager.getDriver("jdbc:oracle:oci:@devatl")
    trying driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@12e0e2f]
    getDriver returning driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@12e0e2f]
    Oracle Jdbc tracing is not avaliable in a non-debug zip/jar file
    DriverManager.getDriver("jdbc:oracle:oci:@devatl")
    trying driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@12e0e2f]
    getDriver returning driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@12e0e2f]
    DriverManager.getDriver("jdbc:oracle:oci:@devatl")
    trying driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@12e0e2f]
    getDriver returning driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@12e0e2f]
    DriverManager.getDriver("jdbc:oracle:oci:@devatl")
    trying driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@12e0e2f]
    getDriver returning driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@12e0e2f]
    DriverManager.getDriver("jdbc:oracle:oci:@devatl")
    trying driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@12e0e2f]
    getDriver returning driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@12e0e2f]
    registerDriver: driver[className=weblogic.jdbc.jts.Driver,weblogic.jdbc.jts.Driver@c0a150]
    registerDriver: driver[className=weblogic.jdbc.pool.Driver,weblogic.jdbc.pool.Driver@17dff15]
    SQLException: SQLState(null) vendor code(17095)
    java.sql.SQLException: Statement cache size has not been set
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)Hi. Ok. This is an Oracle driver bug/problem. Please show me the pool's definition
    in the config.xml file. I'll bet you're defining the pool in an unusual way. Typically
    we don't want any driver-level pooling to be involved. It is superfluous to the functionality
    we provide, and can also conflict.
    Joe
         at oracle.jdbc.driver.OracleConnection.prepareCallWithKey(OracleConnection.java:1037)
         at weblogic.jdbc.wrapper.PoolConnection_oracle_jdbc_driver_OracleConnection.prepareCallWithKey(Unknown Source)
         at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_OracleConnection.prepareCallWithKey(Unknown Source)
         at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_OracleConnection_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:353)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
         at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    SQLException: SQLState(null) vendor code(17095)

  • Trying to change the cache size of FF3.6 from 75meg to a larger size, it only applies on a per session basis. i check the about:config and the changes have applied but when i restart FF it has reset itself to 75 :(

    as per the question, tried to up the cache from 75meg to 300meg but it resets after i restart firefox, have tried to change to various cache sizes but to no avail.
    -=EDIT=-
    it must be something to do with the profile, as when i set up a new profile in the manager, the cache size problem no longer appears. but now, how to repair my profile

    ok, nothing in that text file helped but the original file that it was based on pointed me in the direction that it might be an extension. The only extensions i have are NoScript and FasterFox Lite version....
    I have now traced the fault to lie with FasterFox... if you are not familiar with fasterfox it speeds up internet connections in firefox... several of the options are presets... but when i selected custom it gave me the option of a cache setting, which was set to 75megs.
    I have now changed that cache setting in fasterfox to 300 Megs and it is now persistant in firefox on restart.
    hopefully this information will be helpful to other people in the future that suffer the same problem.
    Thanks for your help TonyE, its greatly appreciated

  • Distributed cache size limit

    Hi,
    I want to create a distributed cache with 2 node.
    Each node can have maximum 500 entries.
    Total entries in cache of both node together should not exceed more than 1000.
    If user try to put more than 1000 element in cache then some old entries from cache (LRU, LFU) should be removed from cache and new entries should be added.
    Can you please help me with the schema for the above scenario.
    Your help will be appreciated.
    Thanks & Regards,
    Viral Gala

    Hi,
    I tried below code <high-units> was not working
    Cache size is 1010  (greater than 500)
    Java code
    package com.splwg.ccb.domain.pricing;
    import com.tangosol.net.CacheFactory;
    import com.tangosol.net.NamedCache;
    public class CoherenceSizeTest {
         public static final int NO_OF_MAIN = 4;
         public static void main(String[] args) {
         NamedCache cache = CacheFactory.getCache("CheckSize");
          for (int i = 0; i < 1010; i++) {
                String key = "key" + i;
                cache.put(key, new Long(i));
         System.out.println(" Cache size : " + cache.size());
    config file
    <?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
        <caching-scheme-mapping>
            <cache-mapping>
                <cache-name>CheckSize</cache-name>
                <scheme-name>default-distributed</scheme-name>
            </cache-mapping>
        </caching-scheme-mapping>
        <caching-schemes>
            <distributed-scheme>
                <scheme-name>default-distributed</scheme-name>
                <service-name>DistributedCache</service-name>
                <backing-map-scheme>
                    <local-scheme />
                </backing-map-scheme>
                <high-units>500</high-units>
                <autostart>true</autostart>
            </distributed-scheme>
        </caching-schemes>
    </cache-config>
    Console output
    MasterMemberSet(
      ThisMember=Member(Id=1, Timestamp=2014-11-07 16:31:21.123, Address=10.180.7.97:8088, MachineId=16932, Location=site:,machine:OFSS310723,process:4036, Role=SplwgCcbDomainCoherenceSizeTest)
      OldestMember=Member(Id=1, Timestamp=2014-11-07 16:31:21.123, Address=10.180.7.97:8088, MachineId=16932, Location=site:,machine:OFSS310723,process:4036, Role=SplwgCcbDomainCoherenceSizeTest)
      ActualMemberSet=MemberSet(Size=1
        Member(Id=1, Timestamp=2014-11-07 16:31:21.123, Address=10.180.7.97:8088, MachineId=16932, Location=site:,machine:OFSS310723,process:4036, Role=SplwgCcbDomainCoherenceSizeTest)
      MemberId|ServiceVersion|ServiceJoined|MemberState
        1|3.7.1|2014-11-07 16:31:24.375|JOINED
      RecycleMillis=1200000
      RecycleSet=MemberSet(Size=0
    TcpRing{Connections=[]}
    IpMonitor{AddressListSize=0}
    Cache size : 1010

Maybe you are looking for