Question about consumption of memory in Collections

I read this on some site-

Memory for collections is stored in the global program (PGA), not the overall system (SGA) area. The SGA memory is shared by all sessions connected to the Oracle database, but PGA memory is allocated for each session. Thus, if a program requires 5 MB of memory to fill a collection and there are 100 concurrent connections, this program leads to the consumption of 500 MB memory of PGA, in addition to the memory allocated in the SGA.

My Question is-

If I use Collections in my procedures and consume 5 MB of space, is the memory always allocated for the session even if the procedure ends its execution?

I want to say is that the memory free for other sessions after the end of session or completion procedure?

user9276238 wrote:

If I use Collections in my procedures and consume 5 MB of space, is the memory always allocated for the session even if the procedure ends its execution?

Yes. How does know the session as your very next statement to it does not run this procedure even once again (with different parameters). There is still 5MB of RAM. And if the releases, it will reassign. If all the processes work like this, immediately release the memory and then grabbing memory-that could cause contention and other issues.

Memory management is more complex than that. For example, assume that your session required 1 few KB of space. So the memory of the process looks something like this:
XXXX

Then, your session must than 5MB for the (huge) collection:
xxxxyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy

And during the treatment, he needs a few more KB:
xxxxyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyzz

Okay, so now he can release the 5 MB of memory (as indicated by y ) to the nucleus? It cannot reduce it because there are allocated and used memory leak (as indicated by the z ). It will need re - org this memory in order to free this 5 MB to a value is.

Therefore, it is not as simple as we'd like to think. The basic rule for PL/SQL is to walk gently using memory. Why? Because it's server code. Memory used in PL is allocated in memory private to this process. Unlike a shared memory, no one can share in its use. Thus the memory must be considered expensive.

There is also the problem of scalability. If your code needs 5MB memory private server PL... what happens when a 100 client sessions running all your code? How well the your code evolves in a multiprocessu environment and several server?

So what memory should ideally use then in PL? Shared memory. The SGA. This means that it is better for scalability and the resource server store structures data for PL as TWG (global temporary tables - where a temporary table is created by session).

I want to say is that the memory free for other sessions after the end of session or completion procedure?

The session is a memory of ito 'sure thing' output to the kernel as free memory - assuming that it is a dedicated server session. The actual process of the server ends and gets out his PGA. Shared services server process several sessions over a lifetime. And only when him over the shared server process, released his PGA. (although PGAs can be narrowed as and deciding achievable by managers of memory)

Tags: Database

Similar Questions

  • Question about making video memory

    I have a technical question on memorial videos.
    I have a video file of eight minutes, I intend to use to make a dvd to a wake.

    During the visits, I saw these videos playing on a loop without end are dvd players used by funeral homes put on a setting to read the dvd continuously or is the engraved dvd to play constantly.
    Thank you for your comments.

    provlima

    What version of Premiere Elements you are using and on what computer operating system is running?

    I wrote in detail step by step how to create looping DVD-VIDEO on DVD using Premiere Elements in conjunction with one of the two third 3rd software. Premiere Elements on its own can give you a DVD-VIDEO loop on DVD disc end product.

    First Elements ATR troubleshooting: PE: DVD-VIDEO to DVD disc in a loop

    Please check the tos and, if you have any questions about them or need any clarification, feel free to ask.

    The player repeat function seems to be the fastest way for you in this busy time and difficult. Call the involved funeral director and find out what player equipment, he or she has, and if it includes the repeat function for DVD-VIDEO to DVD disc.

    The question you asked assumes that when you write a DVD, you want to say DVD-VIDEO on DVD and not AVCHD on DVD format. Please confirm. AVCHD DVD cannot be read on a "regular" DVD player In general, he needs a Blu - ray player with the right support.

    Please look over the above and then, don't hesitate to let us know how we can help you achieve the goal successfully.

    Thank you.

    RTA

  • Question about the upgrade memory for my Satellite M40-307

    Sorry for the newbie question. But if I have 512 MB of memory for the time being, what are my upgrade options?

    Do I have to buy pairs of memory? So I can or buy 2 x 1 GB = 2 GB, or 2 x 512 MB = 1 GB + 512 existing. Or can I say just buy a single 512 MB or 1 GB chip?

    Since no one wants to answer:
    1. check if your laptop supports Dual Channel Ram (it should be, but just see the manual to be sure)
    2. knowledge of what type of RAM you have. This will add or remove a possibility of upgrade

    The thing with Dual Channel is, that you have the best performance if you use 2 RAM of the same type (really of the same type: company, size...)
    you could:
    3. Add a 512 MB of RAM of the same type you have
    3 b. buy 2 pieces of new RAM of the same type (1 GB + 1 GB, or 2 + 2 GB) and do not forget that your laptop supports this quantity (once again: manual to check)

    You will also find in the manual, if your computer supports DDR or same DDR2 RAM (faster)

    If you have lost your manual, you can download it here on the toshiba Web page

    I hope I could help a little.

  • Satellite 230cx: Question about HARD drive, memory and CD recovery.

    Can someone tell me if I can get a recovery for a 230cx disk? And what is the max hard drive that I have and RAM.

    Thank you...

    Hello

    Well, it is a very old unit. I think that it s about 8 or 9 years.
    However, I found the information that this unit has an internal memory of 16 MB and it of possible to upgrade the memory for max 144 MB (16 + 128MB)
    Also, this unit has been delivered with a 1.37 GB HDD part Nr.: P000229560
    I don t think you will be able to use a big HDD like 10 GB. The BIOS couldn't t recognize the HARD drive. Sorry but there is no information on the maximum size of HARD drive.

    The recovery CD, you must order the Toshiba service partner.

  • Question about consumption on the Satellite A660-10W

    My A660-10W (new) was wrong and Toshiba (Mafil in Israel) has changed the hard drive.
    Now the computer acts differently that before when I got it like new.

    For example; and my question is:
    1. After about 15 minutes, it automatically goes into sleep mode.
    I understand that the setting can be changed, however I would like to know if this happens when something is running?
    either I left the WD external BACK-UP running, but he fell asleep...
    2. the same thing will happen if Im watching a movie, for example?

    Thank you

    Laptop can't handle in different way. I guess you are using the recovery of images (Toshiba original Win7) and parameters are exactly the same as before.
    # Yes, you can change it. Simply enter the change plan settings for the power plan that you use, and where you can change the time when the laptop should go to mode "Eve". You can also disable using Pétion NEVER.
    # I can't say with certainty, but on my computer laptop doesn t go "standby mode", when I watch the movie. Test it. Set for 2 minutes and put on a movie.

  • Questions about the upgrade memory for gateway P55C-200

    It comes from an old computer from 1997. I'm trying to update and upgrade for the treatment of text and with older games who have worked on it, even if a bit slower that I liked. MDK is a favorite. I add that a little more RAM will help. It has windows 95 on it. He is currently in good working condition. I have a perfectly good printer and a scanner that I can't use it on my other computers with operating systems newer, but which works well on this one. The computer has a card? IRE 32meg with a spare slot, CPU Pentium 200 HZ and a 4G IDE hard drive.

    What type of card m? IRE this computer accepts it and how can I add? The existing memory card has no info about it. I visited the manufacturing sites of memory several, and they come in white for this computer only. I think maybe it's SDRAM PC66, but I don't know. Any information would be appreciated.

    I just ordered two 128 meg sticks, clock 4, CL3, PC66. Who will be my max at the limit of my system to 256 meg. I still don't know whether or not the card memory factory was PC66, as there was no label on it, and my manual is non-specific, because it covers a group of computers that use the same series of motherboard. The seller did some research and said the Board recommended will work for me. He gave me a link http://panam.gateway.com/s/motherbd/intel/m00260/m0026023.shtml that my Board is covered by the listed series. I guess in a week or so I'll know. Thank you all for your help.

  • questions about the virtual memory and CPU allocation

    Hi, I have 2 questions that I hope will be answered in this forum.

    First of all, I have a computer for video editing with 4 hard drives in raid0 2... also a separate hard drive to the system and programs.

    16 GB of ram

    My question relates to the allocation of virtual memory... I currently set at min - max, same... 1200 MB on each raid0 array and nothing on the c drive.

    Is it safe and effective, or should I create another set up?

    also

    I have processor together for optimal performance for planning programs. I was wondering if the background services must wager together instead of programs.

    Thanks in advance for any help

    Sounds good to me. Distributed pagefile doesn't make much difference in a single dedicated pagefile and programs should take precedence over substantive services.

  • Question about the card memory on the Satellite A200-1VO

    Satellite A200-1VO a slot memory, for example slot for SD memory card, but I cannot insert any memory cards, the fap does not even open.

    In user manuals, you can find a list of supported cards. List of all maps must be readable without any adapter. All that s.

    I use a memory stick and SD card on my Satellite A200-1CR without any problem. If possible, try to contact and consult your dealer. It should be able to explain how to use youe Satellite phone-compatible cards.

  • Satellite L350D - 20 d - question about graphics card memory

    Hi on start I want to sorry for my bad language lol

    I form a few days TOSHIBA SATELLITE L350D - 20 d
    I WIN with Vista reinstaling for XPsp3 after 29 hours of blame Microsoft for making Vista. or m.Kin another and another bootUSBpendrive and the mixture of the BIOS setings... succecfull Finally I reinstal system DVD... BUT!
    This may sound strange, but on Vista when I was check my details Graphisc in DxDiag I saw 1 700 MB of RAM... even with the RAM into the motherboard... RAM on the motherboard had 4GB...
    now I have Xp-Windows7(what is XPSP3) but modifited!... I've been using original Toshiba drivers from this Web site. .and I see now...
    My Ram on the card mother down t o 3.5 GB... and graphics card is about 700 MB of ram... I can say WTF...
    IM really not sure if this computer is ABLE to have 1 700 MB graphics card... That's if I remember well AtiRadeon 3100... or sometihnk...
    anyone has the same Toshiba model?... I want to compare the details of the hardware with this one to what I have now on my Toshiba SATELLITE L350D - 20 d...

    Edit:
    resolution, what I have now and it is maximum that I can choose its 1440 x 900 at 60 Hz only :/
    on the site Web of TOSHIBA Germany I see somethink difrente:

    Grafikadapter type: ATI Radeon 3100 Graphics
    RAM: Bis zu 1 407 MB complete Rechtssicherheit Grafikspeicher EIB 3 GB Arbeitsspeicher
    RAM type: geteilt
    Internal Auflösung Verfügbare video in-house Modi
    Auflösung: 1,440 x 900
    Auflösung external maximum maximum Auflösung: 2.048 x 1.536
    maximum Bildwiederholfrequenz: 85 Hz
    maximum resolution (not interlaced) EIB Genauigkeit Bildwiederholfrequenz: 1,600 x 1,200

    Post edited by: MzytengaM

    > I want screan LCD stop down and stay mobile mind on... no sleep or standby extended... CUS I use external monitor... and I want to save battery power.

    I found a small free tool called turn the wide-screen LCD. You can google for it if you want.
    But as far as I know, this tool is only compatible with Win XP and Vista, so I don't know if it will work on laptops with pre-installed m Win 7.

  • Question about hot pluggable memory

    Recently, I want to increase the memory of the virtual machine online. How can I check if I have this feature on my product? I could see the function of licensing information.

    Memory Hot - Add requires hardware VM worm. 7, and you must activate add Hot for this virtual machine in the settings.

    Remember that add Hot will not work on Win 2003 standard, you need, Enterprise, DataCenter, or Web Edition.

    ---

    VMware vExpert 2009

    http://blog.vadmin.ru

  • I want to ask a question about my mobile mouse memory. I googled my problem and arrived at a forum. He has not answered my question, so I want to ask a question, but I couldn't find how to ask.

    I want to ask a question about my mobile mouse memory.  I googled my problem and arrived at a forum.  He has not answered my question, so I want to ask a question, but I couldn't find how to ask.

    You can ask your question here.

  • Questions about apex_web_service.make_request and collections

    Hello

    I began using with Apex Web services, and I have a few questions about the apex_web_service.make_request procedure. You can pass a name of the collection as a parameter. I'm a little confused on this parameter from the collection...

    This is perhaps a silly question, but the documentation is not very clear, so... This procedure always inserts just a line in the collection (with the XML returned by the web service call), or are there cases where several lines will be inserted?

    If there is still only a single row, what are the practical reasons to use a collection for her? I ask because in most cases interest you about the columns/rows to display in a form or a report in the Apex and I don't see the advantage to store in a collection of single-row, but I may be missing something...

    If the response contains several rows of data, it will be automatically extract the lines and insert them into the different lines of the collection? (posts...)

    What is the best approach then to extract several rows returned in the XML response and insert them into a collection? Currently I use XMLTABLE in a loop and call apex_collection.add_member for each row returned. is there a better way to do it?

    Thank you
    Luis

    Luis,

    the webservice returns only one row in the results collection.

    XMLTABLE using is a good idea, instead of using a loop, you can also use APEX_COLLECTION. CREATE_COLLECTION_FROM_QUERY or CREATE_COLLECTION_FROM_QUERY_B (B for bulk which may mean 'fast').

    brgds,
    Peter

    -----
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

  • A few questions about the upgrade on Satellite A300-144

    Sorry for the typos, English is not my mother tongue.
    I want to ask some questions about the upgrade of a300-144.

    * Some info first.*

    CPU: T2370 ([http://ark.intel.com/products/34445/Intel-Pentium-Processor-T2370-1M-Cache-1_73-GHz-533-MHz-FSB]).
    Chipset: GM965 ([http://ark.intel.com/products/29821/Intel-82GM965-Graphics-and-Memory-Controller]).

    * Questions.*

    1. my frequency of laptop memory at 533 MHz, supports 667 MHz memory controller, memory modules can work at 667 MHz. Is - this because CPU FSB 533 MHz frequency and new processor at 667/800 MHz FSB will fix it or it is hardcoded in the BIOS?

    2 Intel said that the size of max memory for my chipset is 4 GB (2 x 2 GB), but Toshiba says that only 2 GB (2 x 1 GB), who is right?

    3 I know, taken of my CPU is μFCPGA-478 aka socket P, max FSB 800 MHz, max 35 W TDP, so T9500 ([http://ark.intel.com/products/33918/Intel-Core2-Duo-Processor-T9500-6M-Cache-2_60-GHz-800-MHz-FSB]) is a compatible processor or there are some limitations in the BIOS?

    > 1. My frequency of laptop memory at 533 MHz, supports 667 MHz memory controller, memory modules can work at 667 MHz. Is - this because CPU FSB 533 MHz frequency and new processor at 667/800 MHz FSB will fix it or it is hardcoded in the BIOS?

    The speed of the memory is related on the material. This means that the FSB is responsible for the limitation.
    If the FSB would allow support 667 MHz then the memory would also at this speed.

    > 2. Intel says that the size of max memory for my chipset is 4 GB (2 x 2 GB), but Toshiba says that only 2 GB (2 x 1 GB), who is right?
    The memory depends on the chipset. So if the chipset supports 4 GB of RAM, you should be capable of this move to 4 GB of RAM

    > 3. I know, my CPU is? FC-PGA-478 aka socket P, max FSB 800 MHz, max 35 W TDP, so T9500 (http://ark.intel.com/products/33918/Intel-Core2-Duo-Processor-T9500-6M-Cache-2_60-GHz-800-MHz-FSB) will be a compatible processor or there are some limitations in the BIOS?

    It might be possible that the new processor would be fully supported by the BIOS, but in most cases it should not be a problem if the chipset would support the new processor.
    But as far as I know the upgrade of the CPU is not supported by Toshiba or any other manufacturers of portable and its your own risk to run laptop with the new processor.

  • Satellite U405D - several questions about overheating/disassembly/upgrading etc.

    Hello

    I have several questions about my old one by Satellite U405D-S2910

    1. when it works, after 2-3 hours (I run usually small programs such as safari, msn messenger and bsplayer) CPU gets 85 to 90 C (178-188). When I play age of Empires 2 (come on, its an old game) like 2-3 hours, it stops. What could be the possible reason? Furthermore, let me inform you about the climate of the city I live, 30 c temperature - humidity 25-35% (today).
    PS. CPU is AMD Turion 64 X 2 Dual-Core Mobile Processor. Model RM-74

    2. I'm going to disassemble my laptop in order to clean its cooling units (I think at the rate of overheating is this). It does seem like a desktop computer, so complicated. Ive seen a disassembly not to not (btw, its so difficult to spell dismantling :) I think Im going to do this. What are your suggestions on this subject? experiences could help me?

    3. my laptops is Ram 2x2gb PC5300 DDR2 667 MHz SDRAM memory, I want to replace RAM memory 2x2gb MACH XTREME DDR2 1333 MHZ CL9 NOTEBOOK. Should I do it? Fit my portable, stable work? any suggestions?
    PS. motherboard chipset AMD M780V

    4 - Finally :), should I use OS 64 - bit or 32-bit OS (win7)? what OS would you use if you were me?

    Thank you.

    Hey Buddy,

    1 + 2. I think everything is related to a higher internal temperature and you must clean your laptop using a jet of compressed air. That is why it s not necessary to remove, just blow softly and soon the air through the laptop. You can buy such compressed air which squirts of each computer store I think and it takes only 5 minutes.
    You can find a useful article about this here:

    3. in my opinion he should forget this update! The speed of the RAM is related to the FSB of the CPU and as much as I know about Satellite U405D it s 667 MHz so it s already the RAM faster than you can have. Save your money and buy a larger HARD drive or in the best case a SSD that can really improve the performance!

    4. in my view, the answer is clear: Windows 7 64-bit.
    Only a 64-bit OS supports full 4 GB of RAM. ;)

  • Question on the extension memory on the Satellite A80 117

    I have a question about the compatibility of memory.
    (The A8-117 is a Centrino 1.6 GHz (Pentuin M 730 processor) with Frontal 533 MHz bus and 2 MB of level 2, Intel® 915GM Express chipset)

    At the moment I have 1 chip of 512 MB (333 MHz, 2.5 CL) installed. I intend to switch to 1.5 or 2 GB. So what bothers me is: can I install a DDR2 533 MHz modules on this laptop (in this case the old 333 MHz one out)?
    Official website of Toshiba only 333 MHz DDR are provided, so that the 915GM express chipset allowes it.

    If it is not possible to 533, I guess I'll just buy 1 extra GB of 333 MHz DDR.

    Thanks in advance!
    Bostjan

    Hello

    At first, I want to say, which is always recommended to use RAM compatible and tested modules. On this way, you will be sure that it will work well and without any problems.

    According to the specifications of the laptop you can upgrade RAM to 2 GB max and compatible modules are: PC2700 512 MB (PA3312U - 2M 51) and 1024Mo PC2700 (PA3313U-2M1G).

    You can use faster RAM modules, but for me it is really not necessary. The specification of the laptop is the 333 MHz bus speed and faster modules will be not useful for laptop runs faster. It is best to buy 2 x PA3313U-2M1G and you will have no problem and portable will runs much more quickly than before.

Maybe you are looking for

  • Cannot reset the P of Satellite series to factory settings

    My recetnly of the computer has been infected with the virus, omiga more.I tried to reset it with the usual Start 0 out and 0 switch on but when I select the reset option I get the message "cannot reset cannot access partition...". "or something like

  • Re: Satellite A505-S6040 - strange problem after installation of the NVIDIA driver

    Hello, first of all sorry for my bad English, but ill try to explain myself as best I can. I have a Toshiba A505-S6040 I like 2 months My problem is that when I start the laptop and go to the desktop theres a certain point that stop loading... and it

  • GoodGame Empire banner

    I get Goodgame Empire banner occasionally form in the top right corner of the screen. Any tips how to get rid of?I uninstalled Apps with AppCleaner folder and deleted form autorun. It appears always

  • Remove some programs from running at startup

    How can I remove some programs from running at startup? for example, Super Anti Spyware, automatically runs on startup and is listed in the lower right corner of my desk drawer, but it really slows my time to go on the internet. I only have access if

  • restoration of cookies

    recently installed Microsoft Security