Max-instances-per-pk attribute

Does anybody know what is "max-instances-per-pk" attribute in
<entity-deployment> element in orion-ejb-jar.xml file?
I'm using oc4j version:
E:\oc4j\j2ee\home>java -jar oc4j.jar -version
Oracle9iAS (9.0.2.0.0) Containers for J2EEand when I deploy my CMP EJB I get this attribute added to my orion-ejb-jar.xml file with value 20!!!!!
And when I try to create (or findByPrimaryKey) many beans with
the same primary key, after 20 my server is hanging and I get timeout exceptions:
for (int i=0; i<100; i++) mybean.findByPrimaryKey("1");
when i==20 I get:
com.evermind.server.ejb.TimeoutExpiredException: timeout expired waiting for an instance
at com.evermind.server.ejb.DBEntityWrapperPool.getWrapperInstance(DBEntityWrapperPool.java:189)
at com.evermind.server.ejb.DBEntityEJBHome.getWrapperInstance(DBEntityEJBHome.java:135)
at CatalogHome_EntityHomeWrapper10.findByPrimaryKey(CatalogHome_EntityHomeWrapper10.java:302)
at pl.empolis.delta.modules.catalogman.CatalogManagerBean.getCatalogEntryByPublicID(CatalogManagerBean.java:56)
at CatalogManager_StatelessSessionBeanWrapper6.getCatalogEntryByPublicID(CatalogManager_StatelessSessionBeanWrapper6.java:734)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:80)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
How do I set this value to infinity?
Why I can not find any documentation about this?????
Please help,
Artur

Artur -- max-instances-per-pk controls the size of the pool of wrapper instances for OC4J. I would just set it to a very large
integer value. It will be documented in the production release of the EJB guide but for now here is a section from
book. Also, the cache will be able to be disabled but that function was not in the pre-release. Lastly, we should be
posting some of the documentation very soon (look for an announcement) so that will help to clarify some things.
The wrapper instance is OC4J-generated wrapper code that provides for the
services requested in the deployment descriptor. Before the bean instance is
invoked, the client retrieves a handle to the wrapper instance. When the client
invokes the bean, the wrapper is associated with a bean instance.
The max-instances-per-pk attribute sets the maximum entity bean
wrapper instances allowed in its pool for a given primary key. An entity beans
wrapper code can be pooled if it is not used by a client.
The default maximum value is 50. Set the maximum wrapper instances as
follows:
<entity-deployment ... max-instances-per-pk="20"
</entity-deployment>
Set the minimum wrapper instances as follows:
<entity-deployment ... min-instances-per-pk="2"
</entity-deployment>
Thanks -- Jeff

Similar Messages

  • Max Instance Size?

    Hey all,
    Does anyone know where/how you set the max process instance size? I created a BPM Object with a string attribute. I then created a quick presentation so that I could cut and past an xml document into the text area and submit the form. When I submit the form, I get the following error:
    Caused by: Process execution engine execution error.
    Caused by: Max instance size exceeded.
    Current size is 23461, whereas the maximum size is 16384.
    My code seems to work fine with a smaller xml document. Any ideas would be much appreciated.
    Thanks,
    Graham

    Hi Graham,
    In Studio you can change the max instance size by going to the Project Navigator tab -> right mouse clicking the project -> click "Engine Preferences" -> with the "Engine" catagory selected in the upper left corner click the "Advanced" tab in the upper middle portion of the dialog -> change the value in the "Maximum Instance Size" field.
    There's a similar setting on Enterprise you'll need to change before you start deploying the project to this.
    You'll get a warning message if you've made it too big ("The amount of memory used to store instance in memory (instance max size * cache size) should be less than half the maximum JVM Heap Size). If you see this error, pull out your calculator and click on the "Details" tab (to the right of the "Advanced" tab you just clicked"). Note the "Maximum JVM Heap Size" (typically 256mb). As an example, if you change the instance size in the "Advanced" tab from 16kb to 32kb, you might want to change the "Instances Cache" setting from 5000 to 2500.
    Hope this helps,
    Dan

  • How to set the View instance and view  attribute to lov field ?

    Hi
    I created lov and textfield programatically.
    I want to set the viewattribute and view instance to that items(lovbean, texfieldbean).
    How to set programatically?
    Thanks in Advance
    Awadesh

    Hi
    Thanks. Its working fine. But now i got some another issue.
    after setting, i put simple system.out.println(Pagecontext.getparameter("idoflov"));
    But it returns null value.
    why. Actully i want to pass this value (according to my requirement).
    The view instance and view attribute are setting correctly. But after that i checked means it returns null value .
    plz let me know.
    Thanks

  • Max Instance of One DESKI Report for Schedule

    Hi,
    Can someone pls let me know how many Max Instance we can create for One DESKI Report for Scheduling.
    Thanks in advance.
    Prabhat

    Jason,
    Thanks for the info. The query builder o/p and the application o/p are the same. When this situation happened last time I just simply deleted those older instances from the history and left only the current one.
    This has forced the query to return the only available instance, which is the current one.
    My suspect here is that, the SI_ID of a new instance is smaller than the older instance...
    for example,
    Instance 1 - 10023
    Instance 2 - 12344
    Instance 3 - 9892
    Is this possible?? Since I have deleted the older instances I have no way to confirm this case unless it happens again.
    The BO documentation about SI_ID reads like this...
    "This property is used to uniquely identify an object. The number is assigned at creation time, and is never changed until the object is destroyed. You should never hard-code this number, however, since if the object is destroyed the number may be assigned to another object. No two objects have the same ID, even if they are different types of objects; that is, you will never find a report that has the same ID as a folder."
    As it claims that an ID can be re-used if the object is destoryed I assume that though the new ID will be unique there is no guarantee that it will be bigger than the previous instance of the same object.
    But the problem is that I dont have a documentation proof to claim this hence asking help from the guru's here...
    Regards,
    Elan.

  • Setting max record per page property at runtime (very urgent)

    We need to display 7 record for first page and 25 for other pages...
    we tried a reperating frame max record per page property is a report level property. So it cannot change for pages.
    Then We try other way..
    we seperated our query to the different frame to do these
    But we need to summaries some field at page level and
    reset at page has fallowing restriction
    "A Reset At of Page will not work for reports that have multiple repeating frames associated with a group that is involved in the summary. One common case of this is a matrix report. As a result, matrix reports cannot have page-level summaries."
    So all the ways we tried failed.
    How can we do this ... it is very urgent. (we can use any version of report.)
    Thanks for your help...

    repost

  • Multiple instance of custom attributes ACS 5.x

    Hello,
    is there a way to have multiple instances of user custom attributes and
    insert those as multiple instances of the A/V Pair in the authorisation profile in ACS 5.2/5.3 ?
    Background:
    We have to migrate a ACS 4.2 to 5.3.
    In ACS 4.2 our client used the multiline attribute
    Number
    Name
    Description
    Type of Value
    Inbound/Outbound
    Multiple
    22
    Framed-Route
    Routing  information to configure for the user on this AAA client. The RADIUS  RFC (Request for Comments) format (net/bits [router [metric]]) and the  old style dotted mask (net mask [router [metric]]) are supported. If the  router field is omitted or zero (0), the peer IP address is used.  Metrics are ignored.
    String
    Outbound
    Yes
    to specify multiple routes to various networks in the RADIUS reply spcific for every single PPP username of routers dialing in.
    Using the internal user database, extended by a string attribute and using that attribute as source of a dynamic value
    in the access-policy works basically.
    But as I have only ONE single line instance of the attribute for every user, I can only return ONE framed-route.
    We have lots of cases where multiple routes have to be assigned to one router.
    I 'd like to avoid defining a seperate access profile for every remote RAS router for external PPP Dial-In...
    I Think Jack here https://supportforums.cisco.com/thread/2032506 has a simmilar issue...
    Any idea?
    Thanks, Frank

    I had to do this once and I created several custom attributes
    -Route1   (String)
    -Route2 (String)
    -Route3 (String)
    etc ...
    And in the authorization profile you return all those custom attributes as Framed-route. I was actually sending up to 10 Framed-Routes contained in 10 different attributes.

  • How to Increase Instance size for ALBPM-Err:'Max instance size exceeded.

    HI,
    Can anybody in How to increase maximum instance size for
    1. ALBPM Studio
    2. runtime i.e. process administrator?
    Look forward for help.
    Cheers
    The exception in detail is:
    Error while persisting the transaction data: 'Max instance size exceeded.
    Current size is 33262, whereas the maximum size is 16384. This occurs with instance 'Process1' at activity 'StartExecution[Process1DownloadMessage]' of process '/Process1Download#Default-1.0''
    Details:
    Max instance size exceeded.
    Current size is 33262, whereas the maximum size is 16384. This occurs with instance 'Process1' at activity 'StartExecution[Process1DownloadMessage]' of process '/Process1Download#Default-1.0'
    fuego.server.exception.MaxInstanceSizeRuntimeException: Max instance size exceeded.
    Current size is 33262, whereas the maximum size is 16384. This occurs with instance 'Process1' at activity 'StartExecution[Process1DownloadMessage]' of process '/Process1Download#Default-1.0'      at fuego.server.ProcInst.getComponentData(ProcInst.java:792)      at fuego.server.ProcInst.mustStoreComponent(ProcInst.java:2777)      at fuego.server.persistence.jdbc.JdbcProcessInstancePersMgr.executeUpdateInstance(JdbcProcessInstancePersMgr.java:2870)      at fuego.server.persistence.jdbc.JdbcProcessInstancePersMgr.updateInstance(JdbcProcessInstancePersMgr.java:2272)      at fuego.server.persistence.Persistence.updateProcessInstance(Persistence.java:1008)      at fuego.server.execution.EngineExecutionContext.persistInstances(EngineExecutionContext.java:1819)      at fuego.server.execution.EngineExecutionContext.persist(EngineExecutionContext.java:1109)      at fuego.transaction.TransactionAction.beforeCompletion(TransactionAction.java:132)      at fuego.connector.ConnectorTransaction.beforeCompletion(ConnectorTransaction.java:685)      at fuego.connector.ConnectorTransaction.commit(ConnectorTransaction.java:368)      at fuego.transaction.TransactionAction.commit(TransactionAction.java:302)      at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:481)      at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)      at fuego.transaction.TransactionAction.start(TransactionAction.java:212)      at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)      at fuego.server.execution.DefaultEngineExecution.executeAutomaticWork(DefaultEngineExecution.java:63)      at fuego.server.execution.EngineExecution.executeAutomaticWork(EngineExecution.java:42)      at fuego.server.execution.ToDoItem.executeAutomaticWork(ToDoItem.java:264)      at fuego.server.execution.ToDoItem.run(ToDoItem.java:559)      at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:773)      at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:753)      at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:142)      at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:134)      at fuego.fengine.ToDoQueueThread$PrincipalWrapper.processBatch(ToDoQueueThread.java:446)      at fuego.component.ExecutionThread.work(ExecutionThread.java:837)      at fuego.component.ExecutionThread.run(ExecutionThread.java:408)

    First take a look at your instance variables in your processes. Determine if some could be changed to be Separated instance variables. Once an instance variable's category changes from "Normal" to "Separated", it is not included in the instance size calculation.
    If you cannot mark variables as Separated, then in Studio's "Project Navigator" tab, right mouse click the name of your project -> click "Engine Preferences" -> with the "Engine" selected as the Category, click the "Advanced" tab on the upper right change the "Maximum Instance Size" to 64KB (4x the original 15kb value) and change the "Instances Cache" to 1250 (1/4th the original value).
    What version of Enterprise are you on (Standalone or WLS)? There is a similar setting on Enterprise, but it is slightly different between the two types of Enterprise Engines.
    Dan

  • Restrict application instances per user?

    We have a new ERP application.  As with most enterprise software, it has a restrictive license on concurrent uses.  It even counts multiple instances from the same user as multiple uses of its license.
    The application runs from a Windows 2012 R2 server, as a RemoteApp.
    Is there a way to restrict it so that each user may only run a single instance of the application?

    Hi Itwally1,
    All RemoteApp programs on the same server for the same user will run in the same session.
    There seems to be no built-in method to limit a RemoteApp to a single instance per user session. Please refer to following threads and check if can help you.
    Restrict a published RemoteApp to a single instance per user
    Limite RemoteApp to one instance per user
    If anything I misunderstand or any update, please don't hesitate to let me know.
    Best regards,
    Justin Gu
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Infoview Set the number of objects (max.) per page

    Is there a way to set this  preference "Set the number of objects (max.) per page" using infoview web.xml or any using any BO Java SDK. Please advice.
    I want to set the value using some cofiguration or using java SDK. please advice.

    Hi
    There is:
    Log in to InfoView -> Preferences -> Set the number of objects (max.) per page:
    This is per user
    Kind Regards
    Roland Hoeller

  • Clustering w/ Multiple Instances per server

    For performance reasons, we want to setup multiple instances of weblogic on each server in our cluster configuration.How is this handled in a cluster configuration? Is each instance considered another server in the cluster? Does each require its on IP address, or is a seperate port sufficient for each? Also, is there a way to configure the cluster w/o using multicast - there's issues with supporing multicast on our backend network.Thanks, Rick
              

    Sure, if JVM uses native threads and the application itself is well-behaved
              concurrency-wise (very important!) it should be able to scale up on multiple CPUs.
              Madhu <[email protected]> wrote:
              > What about CPU utilization? What if you have mutliple cpus? Is the Java VM
              > optimized for mutliprocessor environment. I can VM per processor so that I
              > can keep them all busy? Is this possible? Can I have a VM locked on to one
              > processor?
              > Also, I found issues running code (could be buggy testing) running on WL 5.1
              > on multi-cpu machine, on single cpu it was all code and in mutli-cpu, mostly
              > index out of bound / some from java.util classes like ArrayList? Is this
              > common?
              > - Madhu
              > "Dimitri Rakitine" <[email protected]> wrote in message
              > news:[email protected]...
              >> Sure you can - each instance will need it's own IP address, but why do you
              > think that running WLS
              >> instance per CPU will improve performance? The reason for running multiple
              > JVMs on the same box was
              >> memory utilization, which is not an issue with Hotspot JVM.
              >>
              >> Richard Kemp <[email protected]> wrote: > For performance reasons, we
              > want to setup multiple instances of weblogic on
              >> each server in our cluster configuration.How is this handled in a cluster
              > configuration? Is each instance considered another
              >> server in the cluster? Does each require its on IP address, or is a
              > seperate port sufficient for each? Also, is there a way
              >> to configure the cluster w/o using multicast - there's issues with
              > supporing multicast on our backend network.Thanks, Rick
              >>
              >> --
              >> Dimitri
              Dimitri
              

  • 1 Instance per 2 CPUs or 4 CPUs

    All,
    Customers like to have a big bx with 8 - 24 CPUs to run BEA. BEA recommends 1
    instance of WLS per 2 CPUs. This ends up 12 instances of WLSs on 24-CPU machine.
    Is there anyone one running 1 instance per 4 CPUs? How is the impact to application
    performance?
    Regards,
    Rick

    "Rick Chang" <[email protected]> wrote in message news:40532648$[email protected]..
    Customers like to have a big bx with 8 - 24 CPUs to run BEA. BEA recommends 1
    instance of WLS per 2 CPUs. This ends up 12 instances of WLSs on 24-CPU machine.
    Is there anyone one running 1 instance per 4 CPUs? How is the impact to application
    performance?Why not. You may want to look at increasing number of exec threads
    per instance accordingly. As for the performance impact - I wouldn't expect
    significant difference if you don't have bottlenecks in the middle tier.
    What would concern me personally is that such a big-fat-box becomes a
    single point a failure - if it dies, it'll take with it all those weblogic instances.
    It would make more sense to partition it to increase failover capabilities of
    the infrastructure.
    Regards,
    Slava Imeshev

  • How to separate application module instance per user session?

    Hi.
    How do you separate application module instances per session or per user? I am creating a web application and has created a simple filter that implements Filter.
    Thanks in advance.

    Hi Frank. Thank you for the reply.
    I tried using two browsers. The behavior of each page is very much different when being opened individually. Its like the two pages is sharing the same iterator / data and / or entity object. These two pages were opened to see if one is dependent upon the other. But when I test the same scenario on a different computer, everything works out fine.
    Is there a way for me to verify if the sessions are different? and if they are different, is there a way to verify if the application module created a new instance for the other session?

  • ISV embedding database with one instance per server limitation

    Hi All,
    As an ISV, it would be nice for Oracle to provide a better embedding solution than a silent install then having to script the creation of, or restore the database. Not because it's too complicated for an ISV to script, but purely for speed reasons. It's much faster to copy pre-loaded data files onto a machine than to create empty data files, load the data in, perform an analyze and any other scripts on the database. Dems just my thoughts.
    However, my real issue is regarding the 'one instance per server' install limitation. As an ISV, if I choose to embed Oracle XE in my application - how can I 'guarantee' that my product can be installed on any given server. Picture this:
    - We submit a proposal/ tender for a license to our software.
    - Client, in conjunction with their IT dept adds internal costs, identifying servers that will run on, responsibilities, project plans (the whole works) etc.
    - Client gets signoff from their management and pays for license.
    - Client goes to install our software using Oracle XE just to find that another ISV has their software with Oracle XE embedded installed on the server.
    - Client either has to find/ buy another server, or we lose the license. Either way, client is unhappy.
    Am I missing something here? Is anyone else anticipating this problem?
    Brad

    Hi Florin,
    Thanks for the response.. a good suggestion and our schema would be < 1GB so size would hopefully not be a problem. However, as soon as we plug into another appliation's Oracle XE implementation - we've potentially lost control of the database and it loses it's "embedded" nature. Probably not a huge problem if it's an application independant implementation of Oracle XE by an IT person, but if it's another ISVs embedded database - the dramas could start.
    We effectively put our user's database within the control of another application who may not have considered the possibility of our data residing there. eg. They could do a 'drop-all' and we lose our database. Or tune the database right down and our application suffers. Or the user uninstalls that application and it decides to automatically remove Oracle XE (after all, that ISV thought it was an embedded application, right?). Do you see the potential issues?
    Perhaps Oracle XE isn't as attractive for ISVs as first thought... I guess at the heart of the issue is the fact that Oracle XE isn't really an embedded database. It's just a database you can [silently] install with your application and then becomes a general db on the machine.

  • Max files per partition

    I am looking to find the max files per partition for MAC OS X Server (and if any differences occur in the XServe RAID) I see that the max file size is 2^63 my concern revolves arounds users with thousands of tiny files
    Thank You

    There is no 'per-partition' limit, it is defined by the format of the volume.
    For example, HFS+ has a theoretical maximum of 2,147,483,648 files (2^31 - not sure where you're seeing 2^63).
    However, in any case the limit is likely to be lower based on the number of allocation blocks on the volume. Since every file will consume at least one block the actual limit is really (number of (allocation blocks -1) which is still a significant number.
    The reality, though, is that the disk limit is not likely to be your problem. The Finder becomes an absolute dog when there are many thousands of files in a directory. If you're trying to view these files in the Finder you'll find the limit is in the low thousands before performance degrades. Note that this limit only applies to files in a single directory and that if you're using a hierarchy of folders you can overcome this problem.
    Non-GUI tools have a better time with it. I have one directory on disk with almost 100,000 files on it and the Finder is the only app that has an issue with it.

  • Max number of instances per Server

    Good morning,
    I've installed Oracle9i in a Windows 2000 Server with 1GB of memory. After that I've created several instances of Oracle DB. With 3 instances my server works acceptably, but after adding two mor instances I've begun to have some perfomance problems and the access speed has considerably decreased, so my question is, what is the maximum number of instances that the same Oracle server can support in order to optimize the access to the DB?
    Thanks in advance.
    Isabel

    Hi,
    I am confronted with a similar problem. ie, we have got several instances on the basis of one application/one instance. I am asked to regroup all these instances to one and only one instance containing several schemas to reduce the number of servers, number of instances and on the way reduce the administrative ( dba ) tasks. As i have got some knowledge of dba, I thought of installing this instance under Oracle 10g like this : an application on its own tablespace and the backup of this tbs via rman. So when an application crashes, I can make use of TSPITR to bring the database to its initial ( stable ) status. My questions are :
    1° any re-initialisation of the database will sanction all the schemas. Is there any
    way to avoid this ?
    2° as different tablespaces be brought to a consistency status different in time via
    TSPITR even if the controlfile happens to be the same ?
    3° if I opt for UNDO management AUTO, there can be only one UNDO TBS
    active at a time. As this won't render me to trouble when i need to recover
    only one application ? or on performance ?
    Any prompt reply will be greatly appreciated.
    Best regards.
    Tiroumalai

Maybe you are looking for

  • My wireless network seems to 'reject' my iPad?

    I have had my iPad 2 (not 3G) for sometime now and the wireless connectivity has traditionally been fine. However, for some reason, I can no longer connect my iPad 2 to my wireless network at home, to browse the internet, etc. I cannot pinpoint when

  • How to use Multiple Homes on Windows Box for patching

    Reading an Article by Arup Nanda 04.23.2007 talks about using multiple oracle homes for patching. We've installed oracle again and now have 2 Oracle Homes (db_1 and db_2). If I look at my service startup for the database I see this: c:\oracle\product

  • Fade Effect Issue with table structure

    I have an existing HTML page with a table framework that uses CSS divs in some of the table rows. My SPRY data is currently wrapped in DIV tags within the table. I've discovered that the table is screwing up the fade effect in IE7. Is there any way I

  • Error CheckPoint not complete .

    Hi Guru's Could some one advice how to solve this problem which is found in the trace file .. psvdbsp01 (oracle)[gisp]/db/gisp/dba/bdump$: tail -300 alert_gisp.log Thread 1 cannot allocate new log, sequence 262393 Checkpoint not complete Current log#

  • Two videos from one person?

    So the last two times I've called my girlfriend, her video and another icon of hers has appeared in the conversation. Her video is the main screen, and her icon is right beside my video in the corner. It makes it so I can only see the icon when Skype