Plugin consuming the entire physical memory avilable
Hello,
I wrote a plugin using acrobat SDK to convert my pdf files to image format. When i run this plugin in a batch mode on multiple files - which are multipage files - Acrobat eats up the entire physical memory after processing certain files. I have ensured that whatever objects i acquired or allocated are freed up in the code. Still after running memory detection tools i am not able to figure out how come acrobat - or plugin - is eating up the memory available. Can someone suggest a solution to the same. Is there any way we can avoid this. If i am missing something please let me know.
Thanks in advance.
Regards
hary
>
> reachhary
> Aug 12, 2010
> Dec 30, 2010 7:16 AM
>
> Plugin consuming the entire physical memory avilable
>
> Hello,
> I wrote a plugin using acrobat SDK to convert my pdf files to image
> format. When i run this plugin in a batch mode on multiple files -
> which are multipage files - Acrobat eats up the entire physical memory
> after processing certain files. I have ensured that whatever objects i
> acquired or allocated are freed up in the code. Still after running
> memory detection tools i am not able to figure out how come acrobat -
> or plugin - is eating up the memory available. Can someone suggest a
> solution to the same. Is there any way we can avoid this. If i am
> missing something please let me know.
> Thanks in advance.
> Regards
> hary
>
> lrosenth
> Apr 6, 2009
> 1. Dec 30, 2010 8:45 AM in response to: reachhary
> Re: Plugin consuming the entire physical memory avilable
>
> No clue how your software works - so really can't debug it for you...
>
> Make sure you release each page after you image it - that's a common
> mistake. Otherwise, watch your memory, etc.
>
> You also don't mention what version of Acrobat you are using...I
> assume you are current?!?
>
We could all benefit if you post your code and take a look at it.
Francis Fukuyama
Similar Messages
-
How to make use of the spare physical memory under buffered I/O of Essbase
We encountered an issue of the physical memory allocation of the server running Essbase with buffered I/O mode. We have implemented some cache setting in Essbase but still found that the disk I/O is quite high. Also we observed that Windows 2003 server cannot make use of the spare physical memory available as the system cache for database files of Essbase.
As allocating more memory as Essbase cache might not help, we would like to know other than changing to direct I/O mode, any other options can improve the disk I/O performance?
Thanks!Sandeep Reddy wrote:
Hi Hyperion_User,
1. Disk IO performance,It mighe depend on quite a few things , one of the aspects might be your storage system. It can depend on the disk configuration too ( i.e if your disk is SAN or NAS, then it depends on the configuration like Raid ..etc).
2. It depends on the HBA ( host bus adapter).
3. Let me try to explain with diagram.
http://www.c-sharpcorner.com/uploadfile/freebookarticles/apress/2008dec16010208am/DataStorageDesign/Images/159059214X-1404.1.gif
4. It might depend on the HBA and even on the switch speed.
5. Buffered IO is a very generic setting,which most of them use( that should not be an issue).
6. Even if you have 30 to 40 GB free memory, every application in essbase has a limitation to it maximum usage ( 2 GB on windows ). Refer to DBAG for more information on this .
Sandeep Reddy Enti
HCC
http://hyperionconsultancy.com/
Thanks for your detailed advice. I just wonder if more physical memory can help to improve the disk I/O being used for concurrent read/write access. We are using Windows 2003 Enterprise Edition and not sure whether some spare physical memory can be used for this purpose.
Thanks again! -
Database consuming lot of Physical memory
Hi ,
My database is on version 11.1.0.7.0 and on SUN SOLARIS SPARC.
My server admin just informed me that my database is using lot of physical memory , which i understand is RAM.
I am looking on google also but i am not able to find a way in which i can check on it and see how it can be controlled.
Any help/suggestion would be highly appreciated.
Regards
KkThere are 2 basic methods that Oracle uses memory.
Statically. Oracle allocates memory (for the SGA) when it starts. This memory remains fixed in size.
Dynamically. In order to service a client, memory is needed for that client session. Oracle dynamically allocates memory for such sessions (called the PGA).
When Oracle memory consumptions grows, it must be dynamically allocated memory. Static memory is just that - static. It does not grow in size.
The usual reason for PGA memory consumption to grow is incorrectly designed and coded bulk processing. A single Oracle server process can easily consume all available free memory on the server as Oracle dynamically increases the size of the PGA of the process running the flawed PL/SQL code.
However, one should not be looking at o/s command line commands to determine Oracle processes's memory utilisation. The output of such commands are often incorrectly interpreted.. as shared memory can be (and often is) included to provide a process's memory utilisation. There are notes on Metalink (mysupport.oracle.com) on the topic and how to correctly use CLI commands to view Oracle process memory utilisation.
An easier, and more accurate, view of Oracle memory utilisation can be obtained from Oracle's virtual performance views.
So, a sysadmin e-mailing a ps (Unix/Linux process listing) showing a particular Oracle process "+using too much memory+" is not really solid enough evidence that memory is being abused. One needs to look closer at the type of memory used by the process. -
Eclipse with flash builder 4 plugin consume the whole memory after several builds
Hi,
we have installed eclipse flash builder 4 plugin on eclipse 3.5.2 on Mac OS 10.6.
We experience problem with memory leak using flash builder plugin 4.
When we build flash project several times, then we see that eclipse consume more and more in time and at the end it looks like that eclipse consume all available memory. When there is no free memory, then system start to swap and we need to restart, because everything is going to be slow when swaping starts.
Any suggestions how to solve this problem?
I suppose that other people also have this problem. I will be realy happy if someone share his experience to fix this.
We uses java 1.5.
Thanks in advanced!Ok, problem solved.
First I uninstalled the flash builder plugin, and eclipse galileo was still not starting.
Then I uninstalled java (both jre/jdk, v6.20).
Crossing my fingers, I reinstalled jdk and then jre (latest downloaded); and eclipse ran again (pheeeew!).
Finally, I installed flash builder 4 plugin again, it works too (!), and aptana works, ... all is working back again, fine! -
Oracle.exe consuming 10GB of total 16GB physical memory.
I am using Oracle 11g on windows 2008 R2 during utilization check of memory i found the my ORACLE.EXE is consuming 10GB of physical memory. my total physical memory size is 16GB. I am not getting why my oracle.exe is consuming so much of memory.
My SGA details are as follows :
SQL> show sga
Total System Global Area 1.0689E+10 bytes
Fixed Size 2185160 bytes
Variable Size 2046822456 bytes
Database Buffers 8623489024 bytes
Redo Buffers 16977920 bytes
Please suggest how can i reduce my memory utilization??Hii, thanks for the useful documents.
I have checked the parameter n the output is as follows
SQL> show parameter target
NAME TYPE VALUE
archive_lag_target integer 0
db_flashback_retention_target integer 1440
fast_start_io_target integer 0
fast_start_mttr_target integer 0
memory_max_target big integer 0
memory_target big integer 0
parallel_servers_target integer 128
pga_aggregate_target big integer 2G
sga_target big integer 10G
SQL> select component,current_size,min_size,max_size,user_specified_size,granule_size from v$memory_dynamic_components;
COMPONENT CURRENT_SIZE MIN_SIZE MAX_SIZE USER_SPECIFIED_SIZE GRANULE_SIZE
shared pool 1879048192 1879048192 1879048192 0 33554432
large pool 33554432 33554432 33554432 0 33554432
java pool 134217728 134217728 134217728 0 33554432
streams pool 0 0 0 0 33554432
SGA Target 1.0737E+10 1.0737E+10 1.0737E+10 1.0737E+10 33554432
DEFAULT
buffercache 8623489024 8623489024 8623489024 0 33554432
KEEP
buffercache 0 0 0 0 33554432
RECYCLE
buffer cache 0 0 0 0 33554432
DEFAULT 2K
buffercache 0 0 0 0 33554432
DEFAULT 4K
buffercache 0 0 0 0 33554432
DEFAULT 8K
buffercache 0 0 0 0 33554432
DEFAULT 16K
buffercache 0 0 0 0 33554432
DEFAULT 32K
buffercache 0 0 0 0 33554432
Shared IO
Pool 0 0 0 0 33554432
PGA Target 2147483648 2147483648 2147483648 2147483648 33554432
ASM
BufferCache 0 0 0 0 33554432
Please tell me by changing or setting which parameter i can reduce my physical memory size??? -
What's consuming the app server heap memory?
Dear all,
I keep getting the "java.lang.OutOfMemoryError: Java heap space" error in our environment, I tried to remove the BAM from the Jboss, and the error disappear for some times, but it appear again recently, while we only changed one line of script in one of the form. (i.e. I don't think the error is caused by changing code)
So, I would like to know where can I find some information about how the memory is consumed in ALC? Because we only have 2 workflow running, although one of them is heavily used.
Here some information about my environment.
- ALC 8.2.1 with no sp
- Using the default Jboss as app server
- Using the default MySQL as Database
- Only 2 workflow running
- While 1 of them have around 4 - 8 request pre week
- And the others will have around 60 - 80 request pre day (i.e. around 490 pre week)
Here listed some points I think may affect the memory and I want to know for sure:
1) Number of variable used in long-live process (i.e. More variable = more Memory used)
2) Number of operation used in long-live process (i.e. More operation = more memory used)
3) Number of track record of long-live process (i.e. More track record = more memory used)
4) Long-lived process vs Short-lived process (i.e. Only long-lived process will keep consume memory because short-lived process will only load on call?)
5) Number of long-lived process still running (i.e. If we send a assign task to notify the user the workflow have been approved, and the user never dismiss it, it will turn out to consume the app server memory because it is still in the running stage)
6) Old version of the same long-lived process will use memory even no active workflow? (i.e. Because active long-live process will load up into memory?)
Thanks in advance
Regards
BillDid you tried to increase your heap size in jboss server . try this and i think it will help you in solving this problem .
if u want to know how to increase the heap size:
go to bath of ur JBoss "D:\Adobe\Adobe LiveCycle ES2\jboss\bin" as example.
scond find the Run file and open it in Text File
find a line which is responsible for heap size ==>>"set JAVA_HEAP_ARGS=-XX:PermSize=128m -XX:MaxPermSize=192m -Xms1024m -Xmx1024m"
close it and restart the server again and test your problem.
put ur line to be like what i wrote 1024 means that 1 giga for heap of jboss.
if the problem still appear for you then your Memory doesnot of because memory heap size -
How to get total physical memory on the system thru program
Hi,
I have used kstat for identifying physical & virtual memory. I am able to get the data items of vminfo_t, but vminfo_t doesnot give the total physical memory all I get fro vminfo_t is
free memory, swap reserved, swap allocated, swap available and swap free.
Can someone help me in getting total physical memory of the system.
Thanks,
RamI do not believe you can get the physical number of pages through kstat. However, you can get it through sysconf(3C). The argument SCPHYS_PAGES will return the number of pages in the system.
See the sysconf(3C) manpage for more information.
Alan
Sun Developer Technical Support
http://www.sun.com/developers/support -
FSCT results shows available physical memory in negative even though memory is available
I ran the FSCT 1.2. In the result summary , I am seeing the Available physical memory in negative value. Then in the server resources there is available memory. So what the negative value indicates ?
*** Results
Users Overload Throughput Errors Errors [%] Duration [ms]
8600 0% 790 4 0% 720193
8800 0% 809 4 0% 720068
9000 0% 828 6 0% 720708
*** Server's information
OS name: Microsoft Windows Storage Server 2012 Standard|C:\Windows|\Device\Harddisk25\Partition2
System drive: C:
Free physical memory: -674414456KB What is this mean ?????
*** Performance Counters
1 - \Processor(_Total)\% Processor Time
2 - \PhysicalDisk(_Total)\Disk Write Bytes/sec
3 - \PhysicalDisk(_Total)\Disk Read Bytes/sec
4 - \Memory\Available Mbytes
*** Server resources
Users CPU DiskWrite DiskRead Memory avg( 5) avg( 6) avg( 7) avg( 8) avg( 9)
avg(10) avg(11) avg(12) avg(13) avg(14) avg(15) avg(16)
8000 26.1% 54817672.0 70764376.0 35565.0 23.2 2.9 29980.6 40536.0
9.1 2.5 37781.1 72017.9 2082.9 824.6 0.0
0.0
8200 40.3% 91722760.0 112079968.0 39282.9 37.2 3.1 78341.7 46828.1
14.9 1.0 45422.1 114833.9 2443.1 1152.5 0.0 0.0
8400 41.6% 101653792.0 116234328.0 39255.1 39.0 2.6 82509.6 40046.2 15.9
3.5 46201.1 135730.3 2467.5 1163.0 0.0 0.0
8600 45.3% 105905328.0 123740152.0 39334.5 42.3 3.0 88674.5 45664.4 18.2
6.5 46254.3 137580.1 2621.2 1192.5 0.0 0.0
8800 41.5% 106930768.0 127199024.0 39064.6 40.8 0.7 85493.2 16726.3 19.4
47.6 46109.0 209028.9 2685.0 1058.9 0.0 0.0
9000 42.5% 110077368.0 129239064.0 38902.4 41.9 0.6 85582.4 17756.1 19.7
61.1 46034.7 198579.7
In the above server resources, memory is still available. How it is calculated and why it is in negative value.
The same test if i repeat i see a positive value. This tool gives everytime + and - ve value which is unreliableHi,
Here are some useful links which should help you from the performance point of view:
Transaction tuning: http://www.oracle.com/technology/documentation/berkeley-db/db/ref/am_misc/tune.html
Access method tuning: http://www.oracle.com/technology/documentation/berkeley-db/db/ref/am_misc/tune.html
Degrees of isolation: http://www.oracle.com/technology/documentation/berkeley-db/db/ref/transapp/read.html
Checkpoints: http://www.oracle.com/technology/documentation/berkeley-db/db/ref/transapp/checkpoint.html
Selecting a cache size: http://www.oracle.com/technology/documentation/berkeley-db/db/ref/am_conf/cachesize.html
Transaction throughput: http://www.oracle.com/technology/documentation/berkeley-db/db/ref/transapp/throughput.html
Also, the Berkeley DB FAQ are having a performance section: http://www.oracle.com/technology/products/berkeley-db/faq/db_faq.html
Regards,
Bogdan Coman -
4GB Physical Memory but 3.67GB Used
Hey there, I'm not so great with computers, I essentially know the basics, and thought might as well post a question about it and see where that takes me. I appreciate the help! Thanks in advance!
I have a 13-inch Macbook pro (Mid 2012) with 4GB memory. I was browsing around and discovered a table in the activity monitor stating the following;
- Physical Memory: 4.00GB
- Memory Used: 3.75GB
- Virtual Memory: 4.51GB
- Swap Use: 35.3 MB
From reading other questions and the responses to them I have realized that Maverick takes up a lot of memory but I'm not quite sure why my swap used isn't zero. I don't have much on this Macbook and have bought it recently. Why is the Swap use not zero? Is it a bad thing that it's 35.3MB?
The reason I was looking around was to figure out if my Macbook would be good to run downloaded games and such on; this is a shared laptop and that's what my brothers are interested in doing for the most part. Yes, we have a huge age gap.
Much appreciated,
SimranSwap is always used. No big deal. What is a big deal is PageOuts.
About OS X Memory Management and Usage
Using Activity Monitor to read System Memory & determine how much RAM is used
OS X Mavericks- About Activity Monitor
Memory Management in Mac OS X
Understanding top output in the Terminal
The amount of available RAM for applications is the sum of Free RAM and Inactive RAM. This will change as applications are opened and closed or change from active to inactive status. The Swap figure represents an estimate of the total amount of swap space required for VM if used, but does not necessarily indicate the actual size of the existing swap file. If you are really in need of more RAM that would be indicated by how frequently the system uses VM. If you open the Terminal and run the top command at the prompt you will find information reported on Pageins () and Pageouts (). Pageouts () is the important figure. If the value in the parentheses is 0 (zero) then OS X is not making instantaneous use of VM which means you have adequate physical RAM for the system with the applications you have loaded. If the figure in parentheses is running positive and your hard drive is constantly being used (thrashing) then you need more physical RAM.
Adding RAM only makes it possible to run more programs concurrently. It doesn't speed up the computer nor make games run faster. What it can do is prevent the system from having to use disk-based VM when it runs out of RAM because you are trying to run too many applications concurrently or using applications that are extremely RAM dependent. It will improve the performance of applications that run mostly in RAM or when loading programs. -
Relative size of sga_max_size and sga_target to the physical memory
Dear Experts,
I have installed oracle 10.2.0.4 on AIX 5.3 with 32 GB of physical memory.
Let us say other applications on the server consume 10 GB of physical memory.
Now how should i plan the size of SGA_TARGET and SGA_MAX_SIZE on the same.As per Oracle® Database Performance Tuning Guide 10g Release 2 (10.2):
You must then divide the resulting memory between the SGA and the PGA.
For OLTP systems, the PGA memory typically accounts for a small fraction of the total memory available (for example, 20%), leaving 80% for the SGA.
For DSS systems running large, memory-intensive queries, PGA memory can typically use up to 70% of that total (up to 2.2 GB in this example).
Good initial values for the parameter PGA_AGGREGATE_TARGET might be:
For OLTP: PGA_AGGREGATE_TARGET = (total_mem * 80%) * 20%
For DSS: PGA_AGGREGATE_TARGET = (total_mem * 80%) * 50%
where total_mem is the total amount of physical memory available on the system.
(http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14211/memory.htm#i49320) -
It frustrates me that if I delete a file from a USB, it doesn't free up the memory on the stik. I have been removing all the files from the stik, opening Disk Utility and erasing the empty USB. That frees up the entire stik. Then I have been transferring back the files I removed from the stik. The result is that I have memory available to use again. It seems to me this is an unnecessarily complicated and time consuming way to get the result. Is there a shorter way to do this?
Hello Horst,
Thank you for the question. Have you been emptying your trash after deleting the items? For the item to be removed from your USB device, you will need to empty the trash on your MacBook Pro after you delete the items, as described in the featured discussion below. Your USB device will still need to be connected when you do this:
Choose Empty Trash from the Finder menu. Unlike Windows, the trash needs to be emptied manually for any drive other than one mounted through the network.
Can't delete off my USB drive
https://discussions.apple.com/thread/1946841
Thank you for using Apple Support Communities.
Best,
Sheila M. -
There is not enough free memory to load the entire file
I saw an older reference to this error in a previous post which apparently got resolved, but didn't explain precisely how it got resolved:
Michael Kitzmiller, "There is not enough free memory to load the entire file" #, 27 Jul 2007 5:23 am
I presume that one answer is to rebuild the document from scratch, changing imported images to referenced images. But I want to recover the file as I put hours of work into it and expected that anything I can save that I also should be able to read back in. I will certainly change to referenced images, but I have to be able to open it first.
thank youWeb...
Here is a smattering of ideas.
Do you have ample unused HDD space? If not, defrag it, although in myu experience, this hardly makes a difference. Check your TEMP/TMP folders and clean them out. Consider downloading cCleaner and running it. Do everything you can to make ample room on your HDD and in places like your TEMP folders. If your HDD is congested, temporarily remove big but relatively unimportant applications and move data elsewhere for a while.
Even with 4GB of RAM, Frame can only use somewhere between 2.7 - 3.2 GB of it under the very best of conditions, and that includes the application as well as the files. Unpacking image files can consume considerably more space than it takes to store them. For example, a 1024 x 768 color image requires more than 3.1MB to describe it as a 32-bit color image, yet when stored in JPEG format, it can be as small as 50kB, a compression of 65:1. Of course, it's not reasonable to assume that your document is comprised entirely of such highly-compressed images, but in the unachievable extreme, it would take 980MB to simultaneously open 15MB worth of those kind of files. The point here is to not fall into the trap of thinking a 15MB file comprising a lot of images needs little more than 15MB of RAM.
Make sure ALL other applications are closed when trying to open your file...Outlook, IE or FireFox, Anti-Virus and Spyware apps, Word, etc.
Consider sending a copy of the file to someone else to see if they can open it for you and delete some of the images before resaving it. If you have a backup copy, rename your current file and restore the backup. Maybe your working copy is corrupt. Who knows? Anything is probably worth trying as long as you have a save copy stored somewhere.
Dennis... -
Any idea how the java application can get the physical memory?
Hello, everyone
Any idea how the java application can get the physical memory?
thanks in advanceI believe what yo intend to do is forbidden, but here
my answer.
when you start your application you can give your VM
the entire memory of your pc. like this this memory
is completly under your control.* headdesk * -
How to get the amount of free physical memory?
How to get the amount of free physical memory?
(without sudo or root)vmstat will give it to you.
Although the question depends a bit on what you mean by free memory.
The figure vmstat labels free (in any reasonably recent version of solaris) actually represents memory mostly filled with cached file contents. So it represents memory that can be easily released if needed by something more important.
Like most unix versions, solaris will use any free memory to cache files thats have been read/written previously just in case they are needed again -
How to get the size of physical memory by using system call ?
how to get the size of physical memory by using system call ?What system call can be used for me to get the size of physical memor? thanks.
%vmstat 3
procs memory page disk faults cpu
r b w swap free re mf pi po fr de sr s0 -- -- -- in sy cs us sy id
0 0 0 3025816 994456 4 19 6 0 0 0 0 8 0 0 0 459 253 139 1 1 99
0 0 0 2864688 777408 0 2 0 0 0 0 0 3 0 0 0 428 134 175 0 1 99
0 0 0 2864688 777408 0 0 0 0 0 0 0 7 0 0 0 448 112 166 0 0 100
one interesting observation about vmstat I found out is (mostly on Solaris)
the first line of information always off chart, so I usually do a few interval to get constant result.
if you use linux
just
cat /proc/meminfo
Maybe you are looking for
-
Issues with external hard drive
hello, i recently purchased a seagate external hard drive 2TB. i am trying to copy videos onto the external hard drive from my macbook( mac osx version 10.6.3 but the files wont copy. i checked the details of the external hard drive, formatted for wi
-
Calling an ABAP WebDynpro Popup from a BSP view
I need to know if the following is possible. I have a requirement to call an ABAP WebDynpro Popup from a BSP view. When the Popup is triggered (eg via pushbutton) the BSP will pass data to the Popup, before the Popup is closed the Popup will pass dat
-
How to insert a hyperlink in mail content for workflow
Experts, I want to insert a hyperlink in mail content when i use sendmail type step in workflow. How to do it? Thanks you very much!
-
Directory Structure - My Dad has multiple user accounts, needs help
My father (who is 87) has an iMac with OS 10.6.5 installed, apparently from a full install disk with upgrades. The problem is, he has previous user accounts created under Leopard and Tiger, also in his name (with slight variations). The ~Applications
-
From SAP ABAP to SAP FICO consultant
Hi Experts, Hope you all are doing good in your area. I want your guidance for my sap career ahead . I have 4 years of experience in SAP as an certified ABAP Consultant. With this year of experience I have worked on technical developments of SAP PP