Questions tagged [memory-pressure]

26 questions
10
votes
3 answers

How to keep executable code in memory even under memory pressure ? in Linux

The goal here is to keep every running process' executable code in memory during memory pressure, in Linux. In Linux, I am able to instantly (1 sec) cause high memory pressure and trigger the OOM-killer by stress --vm-bytes $(awk…
user10239615
6
votes
1 answer

How to respond to memory pressure notifications from GCD?

I am using GCD to get memory pressure notifications. GCD documentation describes some constants like so: DISPATCH_MEMORYPRESSURE_WARN The system memory pressure condition is at the warning stage. Apps should release memory that they do not need…
6
votes
1 answer

Rendering svg in uiwebview causes memory pressure (and app crash)

I am working on an 'interactive map', similar to this example. I needed to be able to zoom in the map and still get a clean illustration, so the drawing of the map is done in svg (it actually was created in Illustrator, then saved as svg file). In…
invalidArgument
  • 2,289
  • 4
  • 24
  • 35
5
votes
2 answers

Terminated due to Memory Pressure with less then 15MB used

I'm facing a strange problem, the app I'm working on it's constantly killed due to Memory Pressure but it's not really using much as you can see in the screenshoot. So I'm started to look for "other" issues like memory leaks, implicit casting, but I…
Cesar
  • 4,418
  • 2
  • 31
  • 37
4
votes
1 answer

Memory pressure notification in SQL CLR

Google is not able to tell me if there is an API available inside the SQL CLR to get memory pressure notification. It is obviously used, since the AppDomain will get unloaded under memory pressure, but the question is if the notification is sent to…
Cine
  • 4,255
  • 26
  • 46
4
votes
2 answers

Reliably forcing a backgrounded app to terminate due to memory pressure

I am trying to understand the conditions that cause the iOS system to relaunch an app that has been terminated due to memory pressure. Creating enough memory pressure has been hard though. Currently my approach is to launch my app via Xcode,…
ide
  • 19,942
  • 5
  • 64
  • 106
4
votes
3 answers

Can Memory Pressure lead to Session Data Eviction in ASP.NET?

Does Memory Pressure ever cause Session Information to be evicted in ASP.NET? If so, will this only happen after all Caches are evicted (even with CachePriority.Highest), or what is the threshold for this to happen?
Alex
  • 75,813
  • 86
  • 255
  • 348
2
votes
0 answers

Running Akka Streams stages in parallel dramatically increases memory pressure

I'm trying to implement an Akka Stream that reads frames from a video file and applies a SVM Classifier in order to detect objects on each frame. The detection can run in parallel because the order of the video frames does not matter. My idea is to…
2
votes
2 answers

How to scale an image down in iOS Share Extension before uploading

I am building a share extension and I need to scale large photos to a smaller size before uploading in my share extension. I'm using this code from How to resize an UIImage while maintaining its Aspect Ratio: - (UIImage*) scaleImage:(UIImage*)image…
2
votes
1 answer

Understanding Negative Virtual Memory Pressure

I was re-reading Poul-Henning Kamp's paper entitled, "You're Doing It Wrong" and one of the diagrams confused me. The x-axis of Figure 1 is labeled as "VM pressure in megabytes". The author clarifies the x-axis as being "measured in the amount of…
Tim Stewart
  • 5,350
  • 2
  • 30
  • 45
2
votes
1 answer

UIWebView app crashes with memory pressure

I am loading a webView inside the tableview. textboby=[[UIWebView alloc]initWithFrame:CGRectMake(10, 250, 280, 1)]; textboby.userInteractionEnabled=YES; textboby.scrollView.scrollEnabled=NO; textboby.backgroundColor=[UIColor…
2
votes
1 answer

Terminated due to Memory Pressure when using iOS AVPlayer

In my iOS application, I am running a YouTube video as a loop with the help of iOS YouTube helper library. But I am not giving the opportunity to play the video at it's full length but after 20 seconds I am queued the same video again like below. -…
AnujAroshA
  • 4,623
  • 8
  • 56
  • 99
2
votes
1 answer

My iOS App Terminated due to Memory Pressure when I am using Photos.app

I am running my application on iOS 7.0.1 & iPod Touch 5th generation device. When I follow below steps my app quits with below error on Xcode 5 without any error in console App quit Unexpectedly Terminated due to Memory Pressure Steps: 1) Run my…
iOSAppDev
  • 2,755
  • 4
  • 39
  • 77
1
vote
3 answers

What mechanisms of the C# language are used in order to pass an instance of an object to the `GC.AddMemoryPressure` method?

What mechanisms of the C# language are used in order to pass an instance of an object to the GC.AddMemoryPressure method? I met the following code sample in the CLR via C# book: private sealed class BigNativeResource { private readonly Int32…
qqqqqqq
  • 1,831
  • 1
  • 18
  • 48
1
vote
2 answers

Memory pressure due to download and saving of images

Fortunately I know where my memory pressure issue is coming from, and I have tried a number of techniques such as wrapping a block in an @autorelease block and setting objects to nil but still no success. Sorry for dumping too much code here, I…
dotKwame
  • 181
  • 3
  • 13
1
2