Apparent "Memory Leak"
I can't keep Skype loaded without crashing Windows because all memory gets used.
Memory usage starts at about 2.6 GB RAM when I load Skype.
Then climbs to consume all memory (4 GB ) within 60-90 minutes - even when not on a call. Issue stops when I exit Skype.
This started when I switched to new microphone (Condenser mic via external DAC - Tascam US-800 using ASIO drivers) Works fantastic (sounds much better than old, cheap mic) until memory is used up and Windows crashes.
No problem seen when using mic with Digital Audio Workstation software packages (Reaper, FL-Studio, etc)
Any ideas/suggestions I can try so I can make this great setup useable with Skype for more than just a brief period?
Thank you!
Skype version 5.5.0.124
Windows 7 (64-bit)
4 GB RAM
USB interface to Tascam US-800 (supporting XLR input for condenser microphone)
Tascam Driver ver 1.0.16.0
Actually, the problem isn't Skype; it's the TASCAM drivers.
I also own the US-800 and there is a serious memory leak whenever it's in use. I have the same problem on multiple computers with various audio software.
Similar Messages
-
Memory leak with fieldpoint and labview
I have an application which is showing an issue of a memory leak. The application does several things, but the part that seems to be causing the trouble is related to use of Fieldpoint VIs. The application reads individual AI channels on a Fieldpoint AI-110 (10 channels, where the set of channels is measured once per second) I have attached the code related to this. The memory leak is quite large (~1.5GB in 24 hours of operation).
I am using LabView 7.1, and Fieldpoint 4.1. The parent application which uses the attached code is a stand-alone application. The operating system is Windows 2000. Fieldpoint communication occurs over a RS-232 link.
Thanks in advance,
Andy
Attachments:
FPAI100_meas_voltage.vi 62 KBHi Andy,
I did not see anything fundamentally wrong with what you wrote, but there were
a few things that I think could be used to be changed. However, there
were a few things that I did modify that might make a bit of a
difference. In your application you were using sequences and a bunch of
local variables. Since LabVIEW is based upon data flow, you can control
the sequence of execution by making data dependencies and simply wiring one
thing to the next. By simply using LabVIEW the way it is meant to run I
was able to completely remove the sequence structure and also eliminate the use
of all of the local variables, all while having the exact same execution order.
It could be that the local variables were causing the memory leak that you
noticed, but I really doubt they could be the cause of such a large leak.
I really think there is probably something else going on in the application
because from what I saw from this bit of code there really is no way that it
would have such large problems. Users use the FP commands daily without
any problems, so most likely these are not the root of the problem.
Go ahead and try the modified code and see if you can implement similar local
and global variable reducing techniques throughout your application.
Hopefully that will help reduce some of the memory leaks you are seeing.
Typically the largest cause of an apparent memory leak really occurs from
building an array within a loop, so make sure you don't have any situations
where that occurs in your code either.
Regards,
Otis
Training and Certification
Product Support Engineer
National Instruments
Attachments:
724727-FPAI100_meas_voltage.vi 56 KB -
Memory Leak with cloneModelFromCastMember()?
Hello Experts!
I have been experiencing an apparent memory leak within
Director 11 when
using cloneModelFromCastMember().
I was making the assumption that calling resetWorld() on a
w3D member
onBeginSprite() would garbage collect any models previously
cloned into that
when I previously ran the movie.
However, if I repeatedly start and stop the movie Director
Gobbles roughly
10Mb more memory each time. The memory usage does not reduce
upon calling
resetWorld()
A good way to replicate this is to use
cloneModelFromCastMember() on a
largeish model in a repeat with i = 1 to 50 loop on the on
beginSprite
handler.
Start and stop the movie over and over to see Director's
memory usage hike
up.
Anybody have any advice why this is happening? Do I need to
explicitly
delete all models cloned into a member on stopMovie????
Cheers
Richard SmithHi Zzzorro,
Thanks for the advice!
Why does cloning from external w3D members help? Does it
avoid the memory
leak? It never used to happen on Director 8.5 so it has to be
a new Version
10 / 11 bug right?
I need to import several weightmapped boned characters into a
3D member, and
due to export issues each character has to have it's own w3D
file.
So I have to perform cloning at runtime to build the world. I
also need to
clone these characters based on the level, so I can't use
just one single 3D
member for both these reasons.
Thanks for any further ideas.
Richard Smith
"zzzorro" <[email protected]> wrote in
message
news:gd4sn2$2l8$[email protected]..
> as a rule of thumb:
> whenever possible avoid cloneModelFromCastMember in the
first place.
> It is highly unrecommended and the intel engineers
always recommended to
> use
> loadFile() with an external w3d file, which is much
better than having the
> w3d
> file in the castlib and using cmfcm.
> each cmfm rebuilds the whole scene and takes a lot of
time the bigger the
> scene is.
> apart from glitches like leaks, which you found right
now and other
> things.
>
> I work very much with sw3d and I barely have more than
one shockwave3d
> member
> in any of my movies. in very rare cases I use 2 sw3d
members. Other than
> that I
> use one member where I build and load everything into
from external w3d
> files
> with loadFile(), which is much more appropriate. the
only downside is that
> I
> can't change the model name, but there are ways to deal
with it.
> -
Good day folks,
I'm looking for some advice regarding my Macbook and what is an apparent memory leak I'm experiencing. I've been getting a lot of 'beachball' activity in the last couple of months and after weeks of phone calls with Apple and a visit to the Genius bar, Diskwarrior, archive and install with Time Machine, etc., etc. it is now apparent that something is sucking memory on the machine even when I don't see any application running. Activity monitor doesn't show the CPU being taxed, but the available memory drops to almost 'zero green' in the pie chart.
Prior to me doing a clean wipe of my hard drive and a selective re-install of data, does anyone have a tip as to what might be causing this? I really don't use a lot of apps. Most common would be iPhoto, Safari, Adobe, Mail, Numbers. My iPhoto library is about 6 GBs. I have tons of available HD space.
Two items in Activity Monitor which appear to be using a lot of 'virtual memory' are 'Dashboard Client' (which I don't appear to be able to 'quit') and Apple80211Agent. I'm not very tech savvy so any tips you could offer would be appreciated. Thanks all.What evidence to you actually have of this so-called memory leak? Memory leaks happen in software, so you would have to examine individually running applications to determine if a leak actually occurs (and you would need to know how to discern one.) If you are running out of RAM as possibly evidenced by beachballing, it may be due to the fact that you are trying to run iPhoto, Safari, Adobe, Mail, Numbers. My iPhoto library, which is more than your 2 GBs of RAM can support. What you need is more RAM.
Virtual memory usage in Activity Monitor has no meaning to you and has nothing to do with RAM usage or memory leaks.
About OS X Memory Management and Usage
Reading system memory usage in Activity Monitor
Memory Management in Mac OS X
Performance Guidelines- Memory Management in Mac OS X
A detailed look at memory usage in 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. -
Apparent Photoshop Memory Leak
Over the last couple months I have been having what seems to be a memory leak problem with Photoshop. I'll be working on a document nice as can be, my screen will freeze, go black, then return with my graphics drivers telling me that it has just recovered from a failiure. At this time photoshop will not respond, and I am forced to close it, and lose all the work I have done.
The crashes usually happen when I am transforming objects, however it has happened while using vector, and raster tools like the pen, and brush.
I have been having this problem ever since I switched laptops from an Acer Aspire (Pentium 6 integrated win8 4gb RAM), to an Acer V3 (AMD A10 amd radeon 7660m win8 6gb RAM). On my last laptop that was noticably worse in terms of hardware, with this new laptop I've been having worse problems.
I use CS6 on both systems.
I have up to date graphics drivers, and I have updated photoshop to the latest patch (as of 16th December).
I am also not able to limit the amount of vram photoshop is allowed to use through the preferences, and it keeps resetting itself (every time the program crashes).
Part of me wants to blame the AMD APU that's in their A10 CPU, but I am not able to pin it on that system just yet.xzenocrimzie wrote:
I have up to date graphics drivers
With an ATI card, unfortunately that's not the right approach. AMD has fallen on its face lately. Maybe they lost the guy who knows what he's doing, I don't know.
Try switching Photoshop's advanced GPU setting to Basic, and close and restart Photoshop.
If you've already done that, and it's not working, seek out Catalyst 12.8 and see if it's available for Windows 8. That's a decent (though not perfect) recent version. You'll have to uninstall the current version first in order to install the earlier one.
I have some hope for 12.12, but so far they've been completely unresponsive to my reports of problems with 12.10 and the newer betas. Apparently the Adobe engineering people can't get them to move on these problems either. Somehow it seems Windows 8 caught them off guard, even though Microsoft had released all those previews. But don't fret; 12.10 and newer don't work worth a darn in Windows 7 either.
-Noel -
Hello, For the last couple of months, I am having issues with one of my tabs or the program itself causing a memory leak. I was hoping that subsequent releases would fix the problem, but when I downloaded V.11 it did not help.
I use tab mix plus and at any time, usually have about 25 tabs open. Everything functioned okay for 8 or so months up until recently.
I am wondering if there is a way to try to track down what is causing the leak. If it is one of my open pages, i will get rid of it. I tried opening one page at a time from scratch, but could not find the issue. .
I always have flash block enabled to cut down on the website junk.
using OSX firefox v11.Now, I'm not going to say it's an Add-On problem because from the research I've been doing on this problem for the last half hour shows that everyone has DIFFERENT add-ons, but everyone's having the SAME problem....
So I went through my add-ons and disabled them one by one, and the single add-on that has been giving me grief is the latest WOT add-on. So, I have Firefox 11 (so does my wife) and we both have the WOT add-on. But that's where the similarity ends... I have Windows 7 x64, she has Windows XP x86.... but she doesn't have the memory leak problem.
What I see is a sawtooth pattern over time. Memory goes up a little over 30+ seconds, then drops down. But over half an hour, the peaks of the sawtooth are larger, and it doesn't drop back down to the same level again - always a little more than before. And before you know it, FF is peaking at 1.5+GB, dropping down to 1.2GB... and FF is running very, very slowly.... excessive disk accesses (paging probably, though I apparently I still have 1.5 to 2.0 GB of free RAM). Killing FF frees it all up, and if I open FF again, it's back to using 250MB of RAM.
So, it's not the add-ons per se, but how they're interacting with FF (or the other way round).... most likely, it's this plug-in container they created to stop add-ons from taking FF with them when they crashed. Seems to have created more problems than it has solved..... would be great if you could choose not to use it.... -
HTTPService + XML Load + Memory Leak
Hi all....
I have noticed a memory leak in my application. This leak was
not apparent when the application was completed some months back
which is what left me a little confused as all I have done since
was upgrade to Flex 3 and possibly updated / changed my Flash
player.
I think I have found the cause to this problem (below) but am
not 100% sure that it is the "actual" problem or any reasons to
back my thoughts up, so have listed what I have checked / tried
along the way (maybe I have missed something)....
My Discovery Process:
I started profiling my application but did not find anything
out of the ordinary. I did a code walk-through double checking I
had cleaned up after myself, removing and even nulling all items
etc but still to now success - the leak is still there.
I have profiled the app in the profiler for reasonably long
periods of time.
All the classes etc being used within the app are consistent
in size and instance amount and there is no sign of any apparent
leak.
I am using a HTTPService that is loading XML data which I am
refreshing every 5 seconds. On this 5 second data refresh some
class instances are incremented but are restored to the expected
amount after a GC has occurred. The GC seems to take longer, the
longer the app is running, therefore more and more instances are
being added to the app, but when the GC eventually runs it "seems"
to clear these instances to the expected amount.
After scratching my head for a while I decided to make a copy
of my application, rip everything out, and focus in my data load,
where I found a problem!
I have now just a HTTPService that loads an XML file every 5
seconds, and this is all I currently have in the app (as I ripped
the rest of the code out), e.g:
Code:
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
....... creationComplete="initApp()" >
<mx:HTTPService
id="httpServiceResults"
url="
http://myIP:myPort/myRoot/myXML.cfm"
resultFormat="e4x"
result="httpResultHandler(event)" />
<script....... >
private var timerPulse:Timer;
private function initApp():void
httpServiceResults.send();
timerPulse = new Timer(5000, 0);
private function httpResultHandler(event:ResultEvent):void
timerPulse.start();
timerPulse.addEventListener(TimerEvent.TIMER, timerRefresh);
public function timerRefresh(eventObj:TimerEvent):void
timerPulse.stop();
timerPulse.removeEventListener(TimerEvent.TIMER,
timerRefresh);
timerPulse.reset();
httpServiceResults.send();
</script>
</mx:Application>
This is pretty much the code I am currently using and it
leaks.
I ran and monitored this in both the profiler and the
activity / task manager, and after running the app for 1800 seconds
(30 min) in the profiler, the memory size grew from 50mg to 165mg
just sending the HTTPService.
I tried loading the service in multiple ways including in AS
rather than MXML creating new instances of it each time, resetting
it, nulling it etc... but nothing prevented this memory increase.
I then tried to load the XML using different methods such as
using the URLRequest and URLLoader which again caused a memory
leak.
What still confuses me is that this leak did not exist in the
previous version and not a great deal has changed since then apart
from upgrading to Flex 3 and possibly upgrading my Flash payer
(which I believe is a possible cause)
After looking into this issue a bit more deeply, I read a few
blogs / forums and other people are experiencing the same problems
- even with a lot bigger leaks in some cases all when reloading
large sets of XML data into Flex - however, I as of yet found no
solution to this leak - people with a similar problem believe it is
not due to a memory leak more a GC error, and others pointing
towards the Flash Player itself that is leaking - I don't really
know.
Findings so far during investigation of this issue:
* App leaks for both HTTPService and ULRRequest / URLLoader
methods
* App only leaks when calling a data loader
* The size of the leak seems to depend on the size of the
XML being loaded
* The size of the leak also seems to be affected by the
applications heaviness - the greater seems to enhance the leak
An interesting factor I have noticed is that if I copy the
XML from my "myXML.cfm" that I link to in my HTTPService and copy
the contents of the file into my own XML file stored within the
Flex project root itself: ""myXML.xml"" the leak disappears... like
it seems to link when loading the XML over a network, however as my
network knowledge is not great I am not sure what to make of this -
any ideas???
Could the connection to the XML document cause leaks??? is
there anything else that could cause this leak??? have I something
in my code sample that could cause this leak??? or could any of the
other things I have mentioed cause this leak???
Any help / ideas would be greatly appreciated.
Thanks,
Jon.I also observed heavy memory leak from using httpservice with
XML data. I am using Flex3 builder under Linux. My Flex application
polls httpservice every 10 seconds. The reply is a short XML
message less than 100 bytes. This simple polling will consume 30+
MB of memory every hour. I leave it idling for several hours and it
took 200 MB of memory. No sign of garbage collection at all. -
Howdy Folks- I wrote a server monitor in java, which I was expecting to run for months at a time without restarting. Apparently there is some slow memory leak which results in an OutOfMemoryError after a few weeks. It's in a production system, so I can't readily add debug statements to the code, and the OutOfMemoryError apparently screwed up the logging, so I didn't get a stack trace in my logs, just an "OutOfMemoryError" went to standard out.
I'm assuming the problem lies in the code, specifically probably some discarded reference that is not being properly garbage collected? I am using a few different ArrayLists to store some historical information, and I call clear() on these frequently. Is there any known issue with ArrayList or HashMap that the "clear()" method doesn't result in garbage collection of the objects that were in it? I am also doing a "remove(int)" sometimes as well. Any chance the objects cleared or removed would not be garbage collected?
thanks
BleuHowdy Folks- I wrote a server monitor in java, which I
was expecting to run for months at a time without
restarting. Apparently there is some slow memory leak
which results in an OutOfMemoryError after a few
weeks. It's in a production system, so I can't
readily add debug statements to the code, and the
OutOfMemoryError apparently screwed up the logging, so
I didn't get a stack trace in my logs, just an
"OutOfMemoryError" went to standard out.Are you even attempting to catch Errors? Catching Exceptions will not help with this. It should print the stack trace. When it OOMs it doesn't mess up what's already allocated, it just can't allocate more.
I'm assuming the problem lies in the code,
specifically probably some discarded reference that is
not being properly garbage collected? Most likely, there are references that are never being cleared in your code. Without seeing the code or at least having a better description, I don't think anyone here can help you. Can you set up a test senario and use an Optimizer to see what's going on?
I am using a
few different ArrayLists to store some historical
information, and I call clear() on these frequently.
Is there any known issue with ArrayList or HashMap
that the "clear()" method doesn't result in garbage
collection of the objects that were in it? Not that I know of, no. I doubt that is the problem. -
Memory leak in JCO when calling an ABAP-function that returns larg tables
Hello everybody,
I think discovered a memory leak in JCO when the calling functionions that have exporting tables with large datasets. For example the ABAP-function RFC_READ_TABLE, which in this example I use to retrieve data from a table called "RSZELTTXT", which contains ~ 120000 datasets. RFC_READ_TABLE exports the data as table "DATA".
Here a simple JUnit test:
http://pastebin.ca/1420451
When running it with Sun Java 1.6 with standard heap size of 64mb I get a heapsize OutOfMemory error:
http://pastebin.ca/1420472
Looking at the heap dump (which I unfortunately cannot post here, because of it' size), I can see that I've 65000 char[512] array objects in my heap, which don't get cleaned up. I think, each char[512] array stands for one dataset in the exporting table "DATA", since the table contains 120000 datasets, the heap is full after the first 65000 datasets are parsed. Apparently, JCO tries to read all datasets in memory instead of justing reading the dataset to which the pointer (JCoTable.setRow(i)) currently points to and releasing it from memory after the pointer moves forward ...
Did anybody else experience this?
Is SAP going to remove to issue in upcoming versions of JCO?
regards SamirHi,
Check Below links
1) How To Analyze Performance Problems JCO
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3fbea790-0201-0010-6481-8370ebc3c17d
2) How to Avoid Memory Leaks
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c3e598fe-0601-0010-e990-b8622840c8c2
Salil...
Edited by: salil chavan on Jun 2, 2009 5:21 AM -
Memory leak using 10.2.0.3 OCI client on Solaris
Hi,
We are using OCI client libraries to connect our C++ program to the Oracle Database. The program does a lot of selects, inserts and SP calls.
Oracle client and Oracle server both are 10.2.0.3.
We have been observing a memory leak of 4M bytes in the C++ program every few minutes since last few days. On debugging through Purify, libumem, and Sun Studio 12, we finally managed to narrow down the problem to the Oracle client library OCI calls.
The Sun Studio leak check shows the following -
Leak #37, Instances = 157, Bytes Leaked = 655004
kpummapg + 0x00000098
kghgex + 0x00000648
kghfnd + 0x000005BC
kghalo + 0x00000A6C
kghgex + 0x000003BC
kghfnd + 0x000005BC
kghalo + 0x00000A6C
kghgex + 0x000003BC
kghfnd + 0x000005BC
kghalo + 0x00000A6C
kpuhhalo + 0x00000558
kpugdesc + 0x00000AD4
kpugparm + 0x00000374
COCIResultSet::InterpretData() + 0x000001B4
COCIResultSet::COCIResultSet(COCIStatement*,OCIStmt*,OCIError*) + 0x000000A4
COCIStatement::PrepareResult() + 0x00000190
A select is executed, a resultset is fetched and the resultset is immeidately closed. The same piece of code has been running at various production systems without any problems. Most of the other sites are either 10.2.0.4 or 9i.
On searching Metalink and various other forums, I found similar issues faced in 10.2.0.1.
Could someone advise if there are any bugs corresponding to this which have been closed. Would upgrading to 10.2.0.4 solve the problem?
Thanks.Hi,
Apparently a similar issue is being discussed over here:
Re: Memory Leak
Hope it helps.
Regards,
Naveed. -
OBVIOUS MEMORY LEAK
iTunes about:10.6.3.25
windows 64 bit Home on AMD64 HP G60 laptop
downloaded and installed "iTunes32Setup.exe"
saw the problem and uninstalled it
downloaded and installed "iTunes64Setup.exe"
iTunes about:10.6.3.25
now i see process "iTunes.exe*32
it is ok when it play song list
but ***** UP MEMORY when i click on another song to play. apparently it doesn't release previous player thread
OR,
if you right click on a song, the memory will blow up antother 6MB and won't release it...can do it all day long
-- until run out of memory and iTunes freezes...without any of my changes.
sooooo.. is it the uninstaller or is iTunes64Setup.exe mispackaged or do both have memory problems on AMD 64 ?Unfortunately I was able to repeat the memory leak even with turning the Toolbar off. To replicate the problem, I was able to watch the memory leak each time I actively selected a new song with the iTunes open. I was able to repeat the leak with and without both Spotify and TuneUp Companion running and not running. The only thing I noticed is when both Spotify and iTunes were open, the memory leak from iTunes added insult to injure with Spotify which kept trying to sync up with iTunes local library which would crash Spotify as well. But I can confirm the memory leak is in iTunes 10.6.3.25 (looking forward to 10.6.4 fixing the problem).
-
Memory Leak in QueryCache - KODO 3.0.0
The QueryCache in KODO 3.0.0 is apparently leaking copies of ObjectIDs. I
have not checked with other versions of KODO. To demonstrate, do the
following with "kodo.QueryCache: true" and with "kodo.QueryCache: false".
Is this really a memory leak, or am I doing something wrong? Assuming it's
real, is there a workaround other than disabling the query cache?
public static void main( String args[] ) {
try {
PersistenceManagerFactory pmFactory =
JDOHelper.getPersistenceManagerFactory(IDI.getProperties());
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
ReferenceQueue rq = new ReferenceQueue();
HashSet heldObjectIDs = new HashSet();
for(int k=0; k<500000; k++){
PersistenceManager pm = pmFactory.getPersistenceManager();
Query q = pm.newQuery(Your_favorite_PC.class, "");
Collection c = (Collection)q.execute();
for(Iterator itr=c.iterator(); itr.hasNext(); ){
PersistenceCapable pc = (PersistenceCapable)itr.next();
heldObjectIDs.add( new SoftReference(pc.jdoGetObjectId(),
rq));
q.close(c);
pm.close();
Reference r;
do {
r = rq.poll();
if (r != null){
heldObjectIDs.remove(r);
} while (r != null);
if (k % 1000 == 0){
System.out.println( "[" + k + "] - Held Object IDs = " +
heldObjectIDs.size() );
} catch (Exception ex){
ex.printStackTrace();
Keith L. Musser
Integrated Dynamics, Inc.
812-371-7777
email: [email protected]
Disclaimer - This email, and any files transmitted with it, are confidential
and may contain privileged or copyright information. If you are not the
intended recipient you must not copy, distribute or use this email, or the
information contained herein, for any purpose other than to notify us. If
you received this email in error, please notify the sender immediately, and
delete this email from your system.Keith-
This is a bug. I've entered it at:
http://bugzilla.solarmetric.com/show_bug.cgi?id=798
Thanks for reporting it.
In article <bq2jbs$eds$[email protected]>, Keith Musser wrote:
The QueryCache in KODO 3.0.0 is apparently leaking copies of ObjectIDs. I
have not checked with other versions of KODO. To demonstrate, do the
following with "kodo.QueryCache: true" and with "kodo.QueryCache: false".
Is this really a memory leak, or am I doing something wrong? Assuming it's
real, is there a workaround other than disabling the query cache?
public static void main( String args[] ) {
try {
PersistenceManagerFactory pmFactory =
JDOHelper.getPersistenceManagerFactory(IDI.getProperties());
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
ReferenceQueue rq = new ReferenceQueue();
HashSet heldObjectIDs = new HashSet();
for(int k=0; k<500000; k++){
PersistenceManager pm = pmFactory.getPersistenceManager();
Query q = pm.newQuery(Your_favorite_PC.class, "");
Collection c = (Collection)q.execute();
for(Iterator itr=c.iterator(); itr.hasNext(); ){
PersistenceCapable pc = (PersistenceCapable)itr.next();
heldObjectIDs.add( new SoftReference(pc.jdoGetObjectId(),
rq));
q.close(c);
pm.close();
Reference r;
do {
r = rq.poll();
if (r != null){
heldObjectIDs.remove(r);
} while (r != null);
if (k % 1000 == 0){
System.out.println( "[" + k + "] - Held Object IDs = " +
heldObjectIDs.size() );
} catch (Exception ex){
ex.printStackTrace();
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com -
Memory leak using pthreads on Solaris 7
I'm on Solaris 7
uname -a:
SunOS zelda 5.7 Generic_106541-18 sun4u sparc SUNW,Ultra-250
compiling with g++ (2.95.2)
purify 5.2
I consistently get memory leaks related (apparently)
to the pthreads lib. I've set the error reporting chain length to 30 (way big), the start of the chain in every case starts with threadstart [ libthread.so.1 ]
when I end my process, I Join the threads before deleting them. What else can I do to get rid of these leaks?
thanks,
richis it worth upgrading to a 64 bit OS with more ram.
Well you're talking a fairly hefty investment in fact your best bets buying a new machine at that point since the motherboard would need to be upgraded as well as memory and OS.
Now I run on a 64 bit OS 12 gigs of ram, but i love my plug-ins, and most are 32 bit, so you would still be using the 32 bit Photoshop if you want the majority of all plugins for photoshop to work. Well while the 32 bit version still have the memory limitations on how much memory it can use, Because its in the 64 bit OS, you have available the full amount of that limitation available to the application.
I can run several different memory intensive applications at one time and normally not have an issue. I say normally cause, sometimes i will crash my graphics driver if i open one too many 3d apps hooked into the Nvidia drivers.
I normally only reboot maybe once a week.
So in short, would it help you to be able to go 64 bit with more ram, Most Certainly even more so if you could care less about plug-ins and want to use the 64 bit version. should you go to 16 gigs of ram.. That depends on your budget really,
Personally I always plan to upgrade when I build my systems, Putting in the largest chips you can with out filling all the slots leaving room for upgrading if needed. that way you're not filling all your slots with cheaper lower memory ram that you would have to replace them all to upgrade.
Hope this helps a bit -
Memory Leak on SpoolSv.exe
Hi
I have a Windows 7 x64 (Ultimate) running on my laptop. Weeks ago i started noticing weird errors like: "memory low", can not start virtual machine. I wasn't running special memory consuming programs. "A reboot a day keeps the troubles away" was my temporary workaround.
When i started digging into the problem, i noticed that memory usage of the process spoolsv.exe was rather high. I have a screenshot of my task manager showing that the "Private Working Set" and also Commit Size is very large.
In the meantime, I have read in another post about a general memory leak in Windows 7 where they suggested using the driver verifier, but it didn't gave me any clue. I uploaded the screenshot of the driververifier.
When the process is skyhigh in memory usage, i can kill it. But a few minutes later i have taken these screenshots from the process explorer.
1) SpoolSv is using CPU. Apparently it is not only consuming RAM but also CPU power.
2) spoolsv.exe graph
I am not printing, or have not printed since days (and several reboots).
Normally I wouldn't care about (temporarly) high memory usage, but it really never drops... Other programs do crash because the lack memory (like videodriver or skype).
Has someone any idea why this process slows down my pc and keeps getting bigger minute after minute?
Kind regards
Please click 'Mark as Answer' on the post that helped you.Hi DamPee,
In addition, I would like to suggest you perform the following steps to check the issue.
Clear Printer Spooler Files and Restart the Spooler Service
=================================
1. Click Start, type "Services.msc" (without the quotation marks) in the Start Search box and press Enter.
2. Double-click "Printer Spooler" in the Services list.
3. Click Stop and click OK.
4. Click Start, type "%WINDIR%\system32\spool\printers" in the Start Search box and press Enter, delete all files in this folder.
5. Click Start, type "Services.msc" (without the quotation marks) in the Start Search box and press Enter.
6. Double-click "Printer Spooler" in the Services list.
7. Click on Start. In the Startup Type list, make sure that "Automatic" is selected and click OK.
What’s the result?
Arthur Li - MSFT -
these are the chunks from the file I made through valgrind a memory check software.
these are the kind of leak or error you could say; that were reported by the software or a library to check memory leaks if u want i could send you the whole file please help
==22982== Memcheck, a memory error detector for x86-linux.
==22982== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward et al.
==22982== Using valgrind-2.2.0, a program supervision framework for x86-linux.
==22982== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al.
==22982== For more details, rerun with: -v
==22982==
==22982== Syscall param times(buf) contains unaddressable byte(s)
==22982== at 0x1E4522: times (in /lib/tls/libc-2.3.4.so)
==22982== by 0x1BF22146: kghinp (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982== by 0x1BB6FBA6: kpuinit0 (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982== by 0x1BB6EED9: kpuenvcr (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22982==
==22982== Invalid read of size 16
==22982== at 0x1C8E9B18: (within /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libnnz10.so)
==22982== Address 0x1CA35F60 is 112 bytes inside a block of size 127 alloc'd
==22982== at 0x1B904984: malloc (vg_replace_malloc.c:131)
==22982== by 0x1BE1E6B5: nlpainzert (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982== by 0x1BE1D3B7: nlpaparse (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982== by 0x1BE1E513: nlpardfile (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982==
==22982== Use of uninitialised value of size 16
==22982== at 0x1C8E988E: (within /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libnnz10.so)
==22982== by 0x1BDC2593: ztchn (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982== by 0x1BDC24C1: ztch (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982== by 0x1BDC57D5: ztcrsgstk (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982==
==22982== Use of uninitialised value of size 4
==22982== at 0x1BD79DA0: ztced_einit (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982== by 0x1BD79EC5: ztcedgks (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982== by 0x1BD79497: ztcedi (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982== by 0x1BD785F7: ztcebi (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982==
==22982== Conditional jump or move depends on uninitialised value(s)
==22982== at 0x1C83BE39: CMP_OctetStringToCMPInt (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libnnz10.so)
==22982== by 0x1C82E155: Alg_ComputeModQ_GHash (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libnnz10.so)
==22982== by 0x1C837582: A_X931RandomGenerateBytes (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libnnz10.so)
==22982== by 0x1BDC4DF9: ztcr2rnd (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982==
==22982== Conditional jump or move depends on uninitialised value(s)
==22982== at 0x1BEE0BDF: kzsrepw (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982== by 0x1BBB38B5: kpu8lgn (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982== by 0x1BBADA00: kpuauthxa (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982== by 0x1BBAD53E: kpuauth (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982==
==22982== Use of uninitialised value of size 4
==22982== at 0x1BD7A382: ztceai (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982== by 0x1BD785F7: ztcebi (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982== by 0x1BD77EC5: ztcei (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982== by 0x1BDC65B1: ztvo5pe (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982== by 0x1BD77F64: ztcen (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982==
==22982== Conditional jump or move depends on uninitialised value(s)
==22982== at 0x1BD79022: ztceb_unpadding (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982== by 0x1BD788D4: ztcebf (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982== by 0x1BD78010: ztcef (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982== by 0x1BD77D07: ztcedec (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1)
==22982==
==22982== Mismatched free() / delete / delete []
==22982== at 0x1B905043: operator delete(void*) (vg_replace_malloc.c:156)
==22982== by 0x1B95C23C: oracle::occi::ConnectionImpl::~ConnectionImpl() (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libocci.so.10.1)
==22982== by 0x1B95A094: oracle::occi::EnvironmentImpl::terminateConnection(oracle::occi::Connection*) (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libocci.so.10.1)
==22982== by 0x8050DE4: DBConnection::CloseEnv(DBError*) (in /home/jaka/IRIS/EXE/test.exe)
==22982== Address 0x1CA59618 is 0 bytes inside a block of size 5 alloc'd
==22982== at 0x1B904D39: operator new[](unsigned) (vg_replace_malloc.c:139)
==22982== by 0x1B95A86E: oracle::occi::ConnectionImpl::setUserName(void*, unsigned, bool) (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libocci.so.10.1)
==22982== by 0x1B95B14D: oracle::occi::ConnectionImpl::openConnection(OCIEnv*, OCIError*, void*, unsigned, void*, unsigned, void*, unsigned, void*, unsigned, unsigned) (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libocci.so.10.1)
==22982== by 0x1B95EFB5: oracle::occi::ConnectionImpl::ConnectionImpl(oracle::occi::EnvironmentImpl*, std::string const&, std::string const&, std::string const&) (in /usr/app/oracle/oracle/product/10.2.0/db_1/lib/libocci.so.10.1)
==22982==
==22982== ERROR SUMMARY: 1524 errors from 165 contexts (suppressed: 27 from 2)
==22982== malloc/free: in use at exit: 960761 bytes in 309 blocks.
==22982== malloc/free: 2699 allocs, 2390 frees, 1313176 bytes allocated.
==22982== For counts of detected errors, rerun with: -v
==22982== searching for pointers to 309 not-freed blocks.
==22982== checked 20880568 bytes.
==22982==
==22982== LEAK SUMMARY:
==22982== definitely lost: 0 bytes in 0 blocks.
==22982== possibly lost: 0 bytes in 0 blocks.
==22982== still reachable: 960561 bytes in 308 blocks.
==22982== suppressed: 200 bytes in 1 blocks.
==22982== Reachable blocks (those to which a pointer was found) are not shown.
==22982== To see them, rerun with: --show-reachable=yes
now if any body can help me removing this memory leak or is this the problem of OCCI
apparently it seems to be OCCI's library issue but i could be wrong please help
hoping to see a response
Message was edited by:
kjaka=============================================
#include <iostream>
#include <string>
#include <vector>
#include <occi.h>
using namespace std;
using namespace oracle::occi;
int main()
Environment* env;
env = Environment::createEnvironment(Environment::OBJECT);
cout << "Enviorment created " << endl;
Connection* conn;
Statement *stmt;
ResultSet *rs;
vector<MetaData> vMD;
vector<MetaData> vArgMD;
int dataType;
char tmpChar[1024];
Statement::Status status;
try
conn = env->createConnection("iris","tpstps", "iris10gr1");
cout << "connection created " << endl;
stmt = conn->createStatement();
string sStmt = "begin :1 := PKGNETWORK.spGetNetworkInfoByIP(:2, :3); end;";
// 1st sp
stmt->setSQL(sStmt);
stmt->registerOutParam(1, OCCIINT);
stmt->setString(2,"192.168.6.12");
stmt->setMaxParamSize(2,20);
stmt->registerOutParam(3,OCCICURSOR);
status = stmt->execute();
int retVal = stmt->getInt(1);
rs = stmt->getCursor(3);//use ResultSet to fetch rows
vMD = rs->getColumnListMetaData();
dataType = vMD[0].getInt(MetaData::ATTR_DATA_TYPE);
cout << "Attribute count : " << vMD[0].getAttributeCount() << endl;
dataType=vMD[0].getInt(MetaData::ATTR_DATA_TYPE);
cout << "Attribute type : " << dataType << endl;
cout << "Attribute name : " << vMD[0].getString(MetaData::ATTR_NAME)<< endl;
cout << "Size : " << vMD.size() << endl;
while (rs->next())
cout << "next row";
cout << "NetID : " << rs->getString(1).c_str() << endl;
cout << " vector filled for SP1" << endl;
cin >> tmpChar;
vMD.clear();
stmt->closeResultSet(rs);
conn->terminateStatement(stmt);
cout << "1st sp executed" << endl;
// 2nd sp
string sStmt1 = "begin :1 := PKGJUNK.SpGetTblAccount(:2); end;";
stmt = conn->createStatement();
stmt->setSQL(sStmt1);
stmt->registerOutParam(1, OCCIINT);
stmt->registerOutParam(2,OCCICURSOR);
status = stmt->execute();
retVal = stmt->getInt(1);
rs = stmt->getCursor(2);//use ResultSet to fetch rows
int loop = 1;
vMD = rs->getColumnListMetaData();
dataType = vMD[0].getInt(MetaData::ATTR_DATA_TYPE);
cout << "Attribute count : " << vMD[0].getAttributeCount() << endl;
dataType=vMD[0].getInt(MetaData::ATTR_DATA_TYPE);
cout << "Attribute type : " << dataType << endl;
cout << "Attribute name : " << vMD[0].getString(MetaData::ATTR_NAME)<< endl;
cout << "Size : " << vMD.size() << endl;
while (rs->next())
cout << "next row";
cout << "NetID : " << rs->getString(1).c_str() << endl;
stmt->closeResultSet(rs);
cout << "2nd sp executed" << endl;
conn->terminateStatement(stmt);
// sp-3
string sStmt2 = "begin :1 := PKGONELINK.spValidateAccount(:2,:3,:4,:5,:6); end;";
stmt = conn->createStatement();
stmt->setSQL(sStmt2);
stmt->registerOutParam(1, OCCIINT);
stmt->setString(2,"37863 ");
stmt->setMaxParamSize(2,100);
stmt->registerOutParam(3,OCCISTRING, 20);
stmt->registerOutParam(4,OCCISTRING, 2);
stmt->registerOutParam(5,OCCISTRING, 3);
stmt->registerOutParam(6,OCCISTRING, 3);
status = stmt->execute();
cout << "3rd sp executed" << endl;
conn->terminateStatement(stmt);
conn->flushCache();
env->terminateConnection(conn);
vMD.clear();
cout << "Demo completed...data deleted" << endl;
cin >> tmpChar;
catch (SQLException &ex)
{//cleanup
cout << "Error, cleaning up..." << ex.getMessage() << endl;
conn->terminateStatement(stmt);
env->terminateConnection(conn);
cout << "terminating env" << endl;
Environment::terminateEnvironment(env);
// throw;//will be caught by outer handler
Environment::terminateEnvironment(env);
return 0;
===================================================
this is not the same program but still this program gives the same amount of memory leak, this memory leak is reported in each program that uses OCCI
this program was made with the help of the sample program posted at the OTN website
"Calling PLSQL functions/procedures";
hoping for a reply soon
Maybe you are looking for
-
I have a bb 8100 which no register the host routing table. I do the wipe handheld and now I can not make calls. It can be a problem on the hardware or a software I don't know but I need help desperate because my contract with my provider end on 9 mon
-
Third party repair shop voided warranty?
Hello! My elderly aunt bought a MacBook Pro and experienced a situation where it stopped taking a charge. She took it to a repair shop, and because it was an "Authorized Apple Dealer", she thought it was an Apple store. The gentleman there voided her
-
my iphone 4 performance has degraded after i did ios 5.0.1 update.. there is a visible delay in all the actions.
-
Provide list of the fixes with the new upgrade via OTA
Hi, Can you please start providing a list of all the fixes available with the new upgrade via OTA. The list can be displayed in the System Update section along with the latest upgrade. This will give the users an idea on what all changes are are avai
-
Hi, Are there some userexit at MM06 (material deletion mark)? I need to check some information before usar unmark some material to deletion. Thanks! Flávio Furlan