Hi,URGENT--Memory size of binary Increasing due to multithreading in Pro*C

I got stuck in Multhithreading in PRO*C.
Memory size of my binary keeps on increasing.
Flow is like this.
My main thread spawns multiple threads of two types of threads. Both types of threads connect to different dbs.
In other words, i need to have multiple connections with to different db's i.e. configure multiple threads for same.
For this i take sql context variable in each thread and pass it to connect_to_db func. for connection. Then that thread use corresponding sql context variable for pl/sql function( CHANGE_INPUT) call.
This keeps of memory size of my binary inceasing.
In above code T_ABILLITY_INPUT is of object type whose ott converted header and out type file is already included.
CHANGE_INPUT is pls/sql function
Can any help me out in using multithreading in pro*c.
It's very-very URGENT, This is creating problem in live site.
Thaks in Advance
Code for process and connect_to_db function is same for both types of threads different is in object types to get process
sample code of connect_to_db
int connect_to_db(char username, char password, char dbname,sql_context ctx,char *ErrorMessage)
int ret;
char ConnString[50] = {0,};
sprintf(ConnString, "%s@%s", username, dbname);
EXEC SQL WHENEVER SQLERROR DO sql_error("ORACLE error--", ErrorMessage);
EXEC SQL ENABLE THREADS;
EXEC SQL CONTEXT ALLOCATE :*ctx;
EXEC SQL CONTEXT USE :*ctx;
EXEC SQL CONNECT :ConnString IDENTIFIED BY :password;
if(sqlca.sqlcode < 0)
return -1;
return 0;
sample code for pl/sql function call
int process(double num,char Flag,char dbName,char dbExtApp,char dbExtUname,char *
dbExtRef,sql_context ctx, char *err)
T_ABILLITY_INPUT *typAbilityInputObj;
T_ABILLITY_INPUT_ind *typAbilityInputObj_ind;
T_ABILLITY_INPUT *typAbilityInputObj2;
T_ABILLITY_INPUT_ind *typAbilityInputObj2_ind;
//declaration of some host variables
int iretVal=0;
char extUser[255];
char extApp[255];
char extRef[30];
char us[ABREF_LENGTH];
char app[ABREF_LENGTH];
char ref[ABREF_LENGTH];
memset(extUser,'\0',sizeof(extUser));
memset(extApp,'\0',sizeof(extApp));
memset(extRef,'\0',sizeof(extRef));
memset(us,'\0',ABREF_LENGTH);
memset(app,'\0',ABREF_LENGTH);
memset(ref,'\0',ABREF_LENGTH);
EXEC SQL CONTEXT USE :ctx;
EXEC SQL OBJECT CREATE :typAbilityInputObj:typAbilityInputObj_ind;
EXEC SQL OBJECT CREATE :typAbilityInputObj2:typAbilityInputObj2_ind;
EXEC SQL OBJECT SET EXTERNAL_USER,EXTERNAL_APPLICATION,EXTERNAL_REFERENCE OF : typAbili
tyInputObj TO :extUser, :extApp, :extRef;
EXEC SQL CALL CHANGE_INPUT(:typAbilityInputObj,:typAbilityInputObj2) into iretVal;
EXEC SQL OBJECT GET EXTERNAL_USER,EXTERNAL_APPLICATION,EXTERNAL_REFERENCE FROM :typAbil
ityInputObj2 INTO :us, :app, :ref;
EXEC SQL OBJECT UPDATE :typAbilityInputObj;
EXEC SQL OBJECT UPDATE :typAbilityInputObj2;
EXEC SQL OBJECT RELEASE :typAbilityInputObj;
EXEC SQL OBJECT RELEASE :typAbilityInputObj2;
EXEC SQL OBJECT DELETE :typAbilityInputObj;
EXEC SQL OBJECT DELETE :typAbilityInputObj2;
EXEC SQL COMMIT;
EXEC SQL OBJECT CACHE FREE ALL;
}

This must be my last last thing.  AHT was on an iMac I bought in 2009.  It was included on my "disk 2" along with several other applications.  When I wiped and installed the full Lion, AHT was gone.  Same is true for the full Mountain Lion installation media.  It does not have AHT.  I'm not at all sure how to get it back from Apple.
I was able to find it on my SL disc 2 and extract it again from that.  Disc 2 won't install on Mountain Lion (the packages are too out of date) but the AHT pkg does.
Since you have it, consider packing it up and keeping it safe.  Maybe someone who knows AHT better than I can elaborate on AHT.  From what I've seen, you get it when your mac ships but if you ever wipe and reinstall the OS, you lose it.

Similar Messages

  • How to Increase the memory size of a File in the Application Server

    Hello Abaper's
    I have generated a XML file for the data of  internal table (with 10 Records). When i download , i can see the XML file for the Entire 10 Records.
    But , while transferring the XML file to Applicationserver , it's  transferring only upto max 4 Records.I     assume that the memory is insufficient to  allocate 10  Records. Can we Increase the Memory size of the File on Application server. OR,  is there any error in My Source Code.
    Code i used to Transfer the XML File to Application server.
    OPEN DATASET FNAME FOR OUTPUT IN BINARY MODE.
    IF sy-subrc EQ 0.
       LOOP AT it_xmltab INTO wa_xmltab.
           TRANSFER wa_xmltab TO FNAME.
       ENDLOOP.
    ELSE.
      MESSAGE e004(zmsg5) WITH 'File FNAME not opened'.
    ENDIF.
    CLOSE DATASET FNAME.
    Regards
    Jv

    Hi,
    DATA : filename TYPE rlgrap-filename.
    DATA : doc_name TYPE char30.
    DATA : bin_size TYPE i.
    SELECT matnr matkl meins
           FROM mara INTO TABLE it_mara
           UP TO 10 ROWS.
    CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
      EXPORTING
        i_filename           = filename
        i_xml_doc_name       = doc_name
      IMPORTING
        pe_bin_filesize      = bin_size
      TABLES
        i_tab_sap_data       = it_mara         "  contains  10 Records
      CHANGING
        i_tab_converted_data = it_xmltab.
    placing XML File in Appl. Server
    DATA : FNAME(60) VALUE 'xyz_File'.
    DATA : num TYPE i.
    DATA : xmldata(256) TYPE x.
      For Writing The data in Application Server
    OPEN DATASET FNAME FOR OUTPUT IN BINARY MODE. " ENCODING DEFAULT.
    IF sy-subrc EQ 0.
      LOOP AT it_xmltab INTO wa_xmltab.
        TRANSFER wa_xmltab TO FNAME.
      ENDLOOP.
    ELSE.
      MESSAGE e004(zmsg5) WITH 'File FNAME not opened'.
    ENDIF.
    CLOSE DATASET FNAME.
      For Reading The data in Application Server
    OPEN DATASET FNAME FOR INPUT IN BINARY MODE. " ENCODING DEFAULT.
    DO.
      IF sy-subrc EQ 0.
        READ DATASET fname INTO xmldata.
        WRITE :/ xmldata.
        Clear xmldata.
      ELSE.
        EXIT.
      ENDIF.
    ENDDO.
    CLOSE DATASET FNAME.
    at runtime i can see   
    it_mara  --> contain 10 records
    it_xmltab --> contain 7 lines (Each line size is 255 char). This table have XML format data,  (unknow format , with all numeric 
                        digits)
    it_xmltab is trasferred to application server , but the xml format is generated upto 4 records, and for the remaining records
    the XML format is not generated.
    the XML data in application server file is
    <?xml version="1.0"?><TY_MARA><TY_MARA><MATNR Datatype="C" Length="36">0-BUY1</MATNR><MATKL Datatype="C" Length="18">012</MATKL><MEINS Datatype="C" Length="6">PC
    </MEINS>
    </TY_MARA><TY_MARA><MATNR Datatype="C" Length="36">0-BUY2</MATNR><MATKL Datatype="C" Length="18">012</MATKL><MEINS Datatype="C" Length="6">
    PC </MEINS>
    </TY_MARA><TY_MARA><MATNR Datatype="C" Length="36">000000000000000001</MATNR><MEINS Datatype="C" Length="6">EA</MEINS>
    </TY_MARA><TY_MARA><MATNR Datatype="C" Length="36">000000000000000002</MATNR
    Regards
    JV

  • Increasing JVM memory size at runtime

    I want to increase the JVM memory size at runtime.
    I found out that I can do this with oracle.aurora.vm.OracleRuntime.setMaxMemorySize(...)
    Which JAR do I have to put on the classpath to be able to acces OracleRuntime???
    What would be the proper implementation to incerase the memory size?

    aurora.zip

  • Epson Print CD - "Increase memory size"

    Bit of a long shot I guess, but I'm trying to print onto a CD using Epson Print CD... However, when I go to print, it comes up with a message that says "Please increase memory size for print CD", and won't go any further. I'm guessing that has something to do with setting preferences in OSX, but I have no idea what to do...
    Any ideas?

    Greg,
    Actually the versions are newer. I just visited the Epson website and found this info. Thank you for the pointer.
    Here's the PowerPC version for your iMac iSight 2.5aAas for 10.2 to 10.4, and Intel version, if you got any Intel Macs 3.0aAs for 10.4.4 and above on the U.S. website. The U.K. links for the same printer are here: PowerPC version 2.5, and Intel version 3.0. Not sure if there is a difference, but you might want to try the U.S. version of the drivers. Realize we here in the U.S. spell colour, color!

  • Increase JVM memory size in build.xml?

    Hi,
    I want to know if it is possible to increase the JVM memory size in the "build.xml" file of my java fx project itself?If so,how to go about it?
    Thanks a lot.

    I think you can achieve that by specifying <fx:jvmarg>.
    For example:
    <fx:deploy width="${applet.width}"
                   height="${applet.height}"   
                   embedJNLP="true"
                   nativeBundles="all"
                      outdir="${dist.dir}" 
                   outfile="${application.title}"
                   verbose="true">
         <!--
         Increase JVM memory size.
         http://docs.oracle.com/javafx/2/deployment/javafx_ant_task_reference002.htm#CIAGFFIF
         -->
         <fx:platform javafx="2.2+" j2se="7.0">
              <fx:jvmarg value="-Xms64M"/>
              <fx:jvmarg value="-Xmx512M"/>
         </fx:platform>
    </fx:deploy>Hope that helps!
    Edited by: ytw on Nov 16, 2012 12:30 PM

  • Jdbc sender channel memory size issue

    Hi Experts,
    We are facing the below error in connect to jdbc sender channel from XI . Could anyone of you suggest me the right action to be taken in this regard.
    Database-level error reported by JDBC driver while executing statement 'select * from*********where posted = '0''. The JDBC driver returned the following error message: 'com.microsoft.sqlserver.jdbc.SQLServerException: The system is out of memory. Use server side cursors for large result sets:Java heap space. Result set size:614,143,127. JVM total memory size:1,031,798,784.'. For details, contact your database server vendor.
    Appreciate your quick help.
    Thanks & Regards,
    Ranganath.

    Regulate the number of records returned by Select statement for permanent fix.
    Few more things....
    a)If you want to select only some fields, then dont use Select * from table.  Rather specify select a,b,c from tablename
    b) specify some flag in the table so that read some records each time and in the update statement update the flag for those records already read. So that you will not reread the same records in the next message.
    Hope you understand.
    c) Increasing java heap size is temporary fix.

  • How to set memory size for JRE

    hi all,
    Is there anyone know how to set the JRE memory size?
    My run my applet application onto browser and I want to increase to size of memory. Such as -ms 128m -mx256m.
    please help.
    regards,
    elvis

    The suggestion could be convert applet into WebStart application which is quite similar to applet (at least
    it is distributed similar way, resides within sandbox etc) but allows to specify memory size as you requested.

  • Maximum Memory Size & Memory Size

    Will a server's memory automatically increase from Memory Size to Maximum Memory Size as the VM requires it? Or is this only valid for adding memory to the Memory Size value manually?

    keithrust wrote:
    Will a server's memory automatically increase from Memory Size to Maximum Memory Size as the VM requires it? Or is this only valid for adding memory to the Memory Size value manually?No, there is no automatic increase in memory. The max memory size just specifies the maximum amount to which you can manually adjust the memory of a running VM. I've now taken to setting the max memory size to the total available memory on my Oracle VM Servers, with memory size set to something reasonable. This way, I can adjust right up to the limit of physical memory without rebooting.

  • Software distribution error with LMS 3.2 regarding flash/memory size

    Hello,
    I'm accustomed to LMS raising warnings about memory size not being enough when in fact there is enough space (eg : there is 256mb, IOS requires 256mb, but LMS calculates 255.234mb, and says there is not enough memory). I've encoutered that situation many times with LMS 3.1 and just learned to ignore it.
    But since I've upgraded to LMS 3.2, we are now getting _errors_ which are preventing us from deploying the IOS, even though there is still enough memory and flash space. I've read in another thread about bug CSCsu49349 but this one should be fixed in LMS 3.2, so I am at lost.
    I always download my IOSes from Cisco.com using LMS so that the proper fields are populated.
    Here is one sample : I was trying to deploy an IOS to a 2821 router. The IOS weighs 29Mb in reality and I have around 31Mb of free flash, and the whole flash is 64Mb, but I get a catastrophic error. Also note the contradictory warning about the memory size :
    Warning - SWIM1065: Minimum RAM requirement of the selected image: 256 MB  .
    RAM available on the device ( 256 MB) May not be enough to activate the  selected image.
    Increase the RAM size for the device, select a different  image for upgrading, or
    specify the RAM size for the image by editing the  attributes of the image stored in the software repository.
    Warning - SWIM1070: Feature subset of the Active image could not be  determined.
    Catastrophic - SWIM1200:Selected Flash partition  requires minimum (64 MB) to upgrade selected software/image.
    Select a  different Flash partition for upgrading the image.
    Do I need to modify the flash requirement on the image to get around this, or is there a patch available for LMS 3.2 ?
    Thanks for the advice,
    Alex.

    Hello,
    After running another inventory to make sure, I get the same error. Here are the steps of the distribution process (we can see I have enough room for the IOS, barely, but still enough) :
    Afterwards I get the failed message :
    And the same error message :
    Thanks for the help!
    Alex.

  • Which model (memory size)?

    I know no one can definitively answer for me but I am torn about how much memory to get on the iPad.
    My wife works retail so we were able to get a discount and two weeks ago I bought the newest iPad, 32GB WiFi only.  Because of her discounts it cost about $93 extra to go from 16GB to 32GB.
    Now that Black Friday is coming the iPad will be even less expensive so I am thinking of rebuying to save some $ (hey money is money right?).  So now I wonder if the 16GB will be fine for me?  I've never used an iPad and don't even know how I will use it other than for surfing the internet.  I do have three older iPods and have 80GB of music on my iTunes but I doubt I would put very much music on the iPad as I don't mind rotating and also think I can share music from my iTunes on my desktop.
    So what about apps? I have heard they can take up space and the 16GB will already have less available space due to the OS.  So should I stick with the 32GB or get the 16GB to save about $90?
    And to further complicate things frankly I think the Mini would even be better for me.  Everything I've read says the non Retina display is no big deal.  But we won't get as good a discount on the Mini but for $250 less than a 32GB iPad it is tempting.
    I appreciate your thoughts/comments.

    I posted something similar on another thread about the full size vs. the Mini;
    A well respected tech writer here (Andy Inhatko) can't say enough good things about the Mini and that it is now his go to iPad.  The non Retina display is a non issue to him and I bet it would be for me too. Of course it would be great if it had it and I'm sure it will at some point.
    So yes probably a 32 GB Mini would be better, but for only $170 less than the full size 32GB is it worth it? Also we won't get as good a discount (as a %) on the Mini. And finally I know they upgrade 'em fast and when they come out with the Mini w/ retina next March I will probably be a tad disappointed.
    And keeping the discussion on memory size it's not as if I would only use either for surfing and music it's just that I don't really know what else it even does.  I google and read but other than checking the weather or when a movie might be playing I don't really know what apps can do for me.

  • Delete file from original location and when copied size of file increases.

    hi !
    I have 2 exe's both of 1.15MB which I want to move to another folder. The files are copied to the folder but the size of exe increases to around 350MB each. What can be the problem ?
    BufferedOutputStream bos=new BufferedOutputStream(new FileOutputStream(filename));
    int o=bis.read();
    do{bos.write(o);}while (o!=-1);
    boolean del=this.fpara.delete();
    System.out.println(del);          Also, the file is not deleted from the original location even though I have used the delete function. The last line produces null output.

    And do follow coding conventions
    {color:0000ff}http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html{color}
    If your original source is all jammed up like the snippet you posted, I'm not surprosed that you can't spot your mistakes.
    db
    Edited by: Darryl.Burke on Mar 9, 2008 12:40 AM

  • Is it possible to config memory size for a process?

    Dear experts,
    I would like to control the memory size assigned for a process on Solaris 9. Can i config memory size assigned for process??
    Many thanks,
    Shun

    You can use ulimit/limit to assign a bound on the amount of space that a process and its children can allocate.
    I'm not sure if that's what you're asking though.
    Darren

  • How to get free memory size of a card with javax.smartcardio

    Hi,
    How can I find how much memory of a card is free with javax.smartcardio?
    Please your advice.
    Thank in advance.

    gizmo wrote:
    I wanted to read the free memory size with a card reader and javax.smartcardio.
    Is it possible to send a APDU Command to select the root 3F00 and read the properties?There is no built-in smartcardio funationality to do this. What you can do is send an APDU and get the memory by calling the code mentioned already.

  • Maximum Memory size of Collections

    hi,
    can anyone please tell me how much data can be stored in a collection.
    I would be using an Arraylist to store objects created at runtime, but i am not sure how much data can be stored into Arraylist.??
    Please reply , Thanks in advance

    dannyyates wrote:
    uj_ wrote:
    The collections store object references and each one takes 4 bytes. Then there's an overhead by if you multiply with 2 you're on the safe side.Takes 4 bytes on a 32 bit platform... maybe. It's not specified by the JVM spec.Well, then use 8 bytes if you have a 64 bit platform. My point is that the objects aren't stored in the collection, just their references.
    I was just offering a rougth estimate. If you've got something better please feel free to spill it out.
    Say you store 1000 object references in an ArrayList. This will take no more than 1000 * 4 * 2 = 8000 byte.What about the actual objects themselves?Yes what about them. They're stored on the heap but not in the collection.
    In general the sum of the memory of all objects is far larger than the collection that holds their references. So if there are memory problems it's seldom due to collections.

  • How to calculate OS memory size in java?

    I want to calculate free memory size , when I tried by Runtime class
    like this Runtime.getRuntime().freeMemory() it gives JVS free memory size
    But I want OS free memory size
    If anybody know then plz reply me ASAP

    Since the question was asked the last time (yesterday afternoon), I don't think Java has changed much, so the answer is still: you can't do it with Java.

Maybe you are looking for

  • How to send a fax by using laptop pc + N70

    Dear friends, can you give me any advise for this practise: edit a fax file on laptop, following, setup a connection between pc and my N70 with bluetooth device, then send the fax out via my N70. I have heard some people did this succesfully, but I f

  • Aggregate and variable one-to-one

    Hi, I would like to create a variable one-to-one mapping in my aggregate target descriptor, but when I want to set up the query key associations, the foreign key field is disabled. Is this not possible, or am I missing something? Regards, Katarina

  • "please connect ipod to see if it needs to be formatted"

    I have juste received an i pod and put the cd in my computer until it asks at one point "please connect i pod to see if it needs to be formatted" so i connect it and nothing happens. please help!!!!!!

  • Mac OS X Leopard 10.5

    Having seen this on the apple website......I WANT IT!!!!!! How do I go about upgrading from Tiger? and as I've had my Macbook for only a week now, do `i have to pay??? Pleease put me out of my torment Speedy

  • My ipod classic will not synch and im getting a -39 message

    My ipod classic will not synch and im getting a -39 message