w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Java Heap Space Out of Memory wtih Websphere Admin Console
In this situation you must bypass the administration console. If you want to do that just edit the configuration file for the server, i.e. edit the server.xml for that particular server, either the application server process or the deployment manager process depending on what process suffers from the memory problem. edit the following attributes: jvmEntries debugArgs="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7777" debugMode="false" disableJIT="false" genericJvmArguments="-Xquickstart" runHProf="false" verboseModeClass="false" initialHeapSize="512" maximumHeapSize="1024" verboseModeGarbageCollection="false" verboseModeJNI="false" xmi:id="JavaVirtualMachine_1183121908656" The server.xml can be found here: /*IBM_ROOT_DIR*/WebSphere/WAS85/AppServer/profiles/MyProfile/co

Categories : Java

MQ (websphere) connection issue java.lang.NoClassDefFoundError
According to IBM, the NoClassDefFoundError exception can be due to a missing jar: "Connector cannot find file jms.jar from the IBM WebSphere MQ Java client libraries. Ensure that variable MQSERIES_JAVA_LIB in start_connector.bat points to the IBM WebSphere MQ Java client library folder."

Categories : Java

CORBA/iiop issue during migration to websphere liberty profile
Liberty profile does not currently support RMI/IIOP. If you need that feature, I recommend using the RFE process.

Categories : Misc

Memory issue in R
The basic answer is that the memory allocation function needs to find contiguous memory for construction of objects (both permanent and temporary) and other processes (R-process or others) may have fragmented the available space. R will not delete an object that is being overwritten until the load process is completed, so even though you think you may be laying new data on top of old data, you are not.

Categories : R

What could cause this memory issue?
I don't think There is enough information to find the cause to your leak, and without posting your entire solution I am not sure there can be, since the question is about locating the root cause of it... What I Can offer is the approach I have used when I had my own memory leak. The technique was to: Open a memory profiler. From your screenshot I see you are using one. I used perfmon. This article has some material about setting perfmon and @fmunkert also explains it rather well. Locate an area in the code that you suspect that it is likely that the leak is in that area. This part is mostly depending on you having good guesses about the part of the code that is responsible for the issue. Push the Leak to the extreme: Use labels and "goto" for isolating an area / function and repeat th

Categories : C#

Memory issue in ios
Its is very obvious if you will save more and more of images in database it will give memory warning.Because its create a copy of the image and saving it in database. Just save the image in library and save there path in database or plist.

Categories : Iphone

java run out of memory issue
Heap is only part of the equation. Have a look at total resident memory - it includes heap and off heap contributions. Off heap includes mapped JARs, thread stacks (~1MB per thread), perm gen, etc. SO has a number of questions on how to do it on Linux.

Categories : Java

Azure IIS Memory issue...?
A normal Azure WebRole does not encounter this issue, so this is something specific to your app and I don't think anybody on here can just guess at what it might be without lots of details about your application. I think your best bet is to figure out what objects are taking up all the memory and where they are rooted. It is likely one simple thing that can be easily fixed in your code once you know what object is consuming the memory. Check out the following 3 blog posts for some really good walkthroughs on how to do this: http://blogs.msdn.com/b/tess/archive/2005/11/25/496973.aspx http://www.codeproject.com/Articles/19490/Memory-Leak-Detection-in-NET http://blogs.msdn.com/b/delay/archive/2009/03/11/where-s-your-leak-at-using-windbg-sos-and-gcroot-to-diagnose-a-net-memory-leak.aspx

Categories : Azure

MKMapView memory issue in iOS SDK
If you push and pop the MKMapView in code over and over, you might want to make sure that you are letting control back to iOS so that it can actually release the view (Not putting the push and pop in a while(1) loop that is). Maybe you should try turning off ARC and make explicit retain and release calls to the map view and see if you get better results, just as an experiment?

Categories : Iphone

Out of memory issue Bitmap
You need to compress the bitmap image using the compress method from the Android bitmap class. I ran into this issue a while back and ended up having to compress the images I was using.. Check out the description of the compress method at the link below. It should be fairly straightforward. You just choose your format from the enum's, the "quality", and the output stream. Reference: http://developer.android.com/reference/android/graphics/Bitmap.html#compress(android.graphics.Bitmap.CompressFormat, int, java.io.OutputStream)

Categories : Android

Memory Issue in my android application
You seem to be loading large bitmaps in your activity and the device is running out of memory. Here's a guide to displaying bitmaps properly in Android - http://developer.android.com/training/displaying-bitmaps/index.html

Categories : Android

How did I solve this memory leak-ish issue?
You are probably running unoptimized (in Debug mode, or with debugger attached). In that case the JIT extends the lifetime of locals to the end of the method to help with debugging. With separate methods, the locals do only exist in a separate stack frame which goes away quickly. Try it in Release mode without debugger.

Categories : C#

Python3: Why i'm getting a UnicodeDecodeError or is this a Memory issue?
Given your data & snippet, I would be surprised if this is a memory issue. It's more likely the encoding: Python is using your system's default encoding to read the file, which is "cp1252" (the default MS Windows encoding), but the file contains byte sequences/bytes which cannot be decoded in that encoding. A candidate for the file's actual encoding might be "latin-1", which you can make Python 3 use by saying open("Ausstellungen.txt",mode="r", encoding="latin-1") A possibly similar issue is Python 3 chokes on CP-1252/ANSI reading. A nice talk about the whole thing is here: http://nedbatchelder.com/text/unipain.html

Categories : Python

iOS - can the number of delegates become a memory issue
As long as the same main view is the delegate for all of your objects, the only memory consumption in this pattern are your newly created objects. The delegate references cost nothing in terms of reference, as they are just pointers to your existing main view controller. With that said, in some circumstances, people do create specialized objects to act as delegates and if you follow that pattern (where you would allocate and maintain a separate delegate object for each "other" object), then you would see consumption and this pattern sometimes leads to leaks depending on how ownership is managed/mismanaged. But, for the case described above, it should not be a problem.

Categories : IOS

Memory issue with large NSData
I guess it can depend on the crash, but if it is a problem of lack of memory (you can both be using too much memory or be creating too many objects) it will crash the entire app. You should try to test the app with smaller files and see how it behaves.

Categories : IOS

Flex 3 Memory leak issue
This will not solve your problem but I hope it helps. First and foremost you are not getting anywhere just by looking and refactoring code. You need hardcore data that proves that you have a leak, which then will tell you what is leaking so you can fix it. From all the memory profilers I've used the FlashBuilder one is still the best, the IntelliJ one was not reliable a year and Adobe Scout only does performance analysis. Start by your smallest modules and with the memory profiler open prove that opening and closing a module (preferably in isolation of the main rig) creates a leak. If that's the case I would start by removing ALL the code from the module, and testing it again, add part by part which will lead you to the lead eventually. You can use a best suspects search, where you fir

Categories : Actionscript

memory leak issue in Backbonejs App
Applications built using backbone often have memory leaks caused by orphaned views. I deal with this by using marionette which manages my views for me. Using backbone directly isn't a typical approach, as it's really a toolkit upon which frameworks are developed.

Categories : Jquery

Memory warning & crash issue
First check in .h file that you property-sythesized with retain or not if with retain then set strong instead of retain like bellow.. @property ( nonatomic, strong) IBOutlet UITextField *yourTextField;;

Categories : Iphone

java 1.6 32-bit min and max heap memory issue
In your case, the limit is most likely the 32 bit architecture and the way that Windows is apportioning the virtual address space. According to the Oracle JVM FAQ, you can only expect to get 1.4Gb to 1.6Gb on a 32bit JVM on Windows.

Categories : Java

Joomla 2.5.14 mysql - memory issue
A nice and easy way to get started is: turn Joomla debug on in the Global configuration. Then reload the frontpage, and examine closely the output at the bottom of the page. There you will find the details of the memory used by each module, and the list of queries run. This will give you a head start and limit the number of items you need to debug (there will be a single module eating up all your memory). If "after dispatch" is taking too long, then it could be either a plugin or the component being shown on the page. If nothing "notable" shows up here (a lot of queries, more than 50, or high memory consumption, or long time for a single item, you might want to look at the apache error_log and mysql log and verify system limits.

Categories : Mysql

Python: How to use a generator to avoid sql memory issue
With MySQLdb, the default cursor loads the entire result set into a Python list when the call to cursor.execute(..) is made. For a large query that may cause a MemoryError whether or not you use a generator. Instead, use an SSCursor or SSDictCursor. These will keep the result set on the server side, and allow you to interate through the items in the result set on the client side: import MySQLdb import MySQLdb.cursors as cursors def getUNames(self): # You may of course want to define `self.gdbCursor` somewhere else... conn = MySQLdb.connect(..., cursorclass=cursors.SSCursor) # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # Set the cursor class to SSCursor here self.gdbCursor = conn.cursor() globalUserQuery = ur'''SELECT gu_name F

Categories : Python

express file upload memory issue
Actually, I was getting the same problem, but I'd changed my default upload directory. So, I changed it back that to default in express i.e. I changed app.use(express.bodyParser({ uploadDir: __dirname + "/public/images/tmp" })); to app.use(express.bodyParser()); Then, I deployed the app, and it worked for me. You might also want to look at the dependencies in your package.json file. You can consult this link for detail http://blog.nodejitsu.com/package-dependencies-done-right

Categories : Javascript

Memory issue when storing images in byteArray
It might be because your byte array is 2 dimensional, you only need one dimension for loading an image using a byte array, and the second dimension could potentially double the Ram needed as for each byte you would have an empty but still existing byte that you don't use

Categories : Java

Classic ASP & SoftArtisans ExcelWriter Memory Issue
It doesn't look like you're missing any garbage collection, however I work for SoftArtisans (the company that produces ExcelWriter) and according to our bug tracking, we did fix memory leaks in v2 and v3. Unforunately, those versions are almost old enough to vote and no longer available (we're at 8). Feel free to contact us offline if you have questions: http://www.officewriter.com/contact-softartisans.aspx

Categories : Excel

objective-c memory management issue in iPhone
Instruments is great at finding what objects leaked. It isn't so good at telling you the source of the leak. If this is object leaking, it's not because of this code, but rather somewhere else in your code, you've retained this currentNodeContent (perhaps added it to some other data structure that never released it). The static analyzer (shift+⌘+B or choosing "Analyze" on the Xcode "Product" menu) sometimes can identify sources of leaks. I'd make sure you get a clean bill of health there before even bothering with Instruments. If you are still leaking, I'd look at what you did with currentNodeContent in didEndElement, and look at your memory management from that point on. You can also look at the Finding Leaks section of the Instruments User Guide and see other suggestions (for e

Categories : IOS

Memory issue in mono touch application
When working with UIImage and UIImageView you should wrap your code into using statements or dispose the images manually if you don't need them anymore. The reason is that the managed version of UIImage basically only consists of 4 bytes, a pointer to a memory region that holds the image data. The image itself is unmanaged. This means that there is no pressure on the GC because it only sees the managed world. If you cannot do that because you need to hold all the image data in memory, you'll need to rethink your design. iOS devices only have a very limited amount of RAM and just because you can apply the full power of .NET to the device, doesn't mean that you also should do that. Try to be a good memory citizen. using(UIImage image = UIImage.FromFile(...)) { // Process the image. } //

Categories : C#

when gridview have lots of items ,"out of memory" issue
Maybe you're storing the blob as full size? If so, there's no need to do that as you're wasting too much space and you're having these memory issues. The users is not going to see the big image anyway, so redo your image storing in order to store the scaled down images as blobs. You're getting these OOE because you're loading the full blob byte array - and the way it is now, you can't make use of the article from developer article. Also, don't load the images in that Stock object as you're going to hold them unnecessarily. Rather than that, use a bitmap loader mechanism that keeps the images in a LRUCache and if not found in there, it loads them from database. In your GridView adapter getView method request to load that image. If found in LRUCache, get it from there, if not start an Asyn

Categories : Java

NSDictionary initWithContentsOfFile memory leak issue
It looks to me like you're leaking your NSDictionary objects, as the static analyzer indicated. You aren't storing the result of [[NSDictionary alloc] initWithContentsOfFile:path] or of [[NSDictionary alloc] initWithContentsOfFile:tutorialPath] anywhere so you can't send those objects explicit release messages. Try adding autorelease calls after creating those intermediate dictionaries, like: _animDataDictionary = [[[[NSDictionary alloc] initWithContentsOfFile:path] autorelease] objectForKey:@"frames"]; _tutorialAnimDataDictionary = [[[[NSDictionary alloc] initWithContentsOfFile:tutorialPath] autorelease] objectForKey:@"frames"];

Categories : IOS

Memory Issue - Large Poisson Matrices
Well A+ for effort! But there is a way more efficient method for doing this. You need sparse matrices. Try something like n = 20; e = ones(n^2,1); o = e; for i = n:n:n^2-1 o(i) = 0; end A = spdiags([-e -o 4*e -o -e], [-(n+1) -1 0 1 (n+1)], n^2, n^2); if you really want to generate it yourself. I post this method so you can learn how to make banded sparse matrices using general pracitce. But for a Poisson matrix you can simply use the built in MATLAB one: B = gallery('poisson',n); To illustrate why you need sparse matrices, try checking the sparsity for various values of n with sparsity = nnz(B)/prod(size(B)); Increasing the number n to somewhere around 20 is when poisson matrices really make a difference as they really are sparse (close to 1% are nonzeros). All these zeros in

Categories : Matlab

Does RubyMotion 2.5 solve the memory management issue?
The RM-3 bug mentioned in the article is specifically fixed in RubyMotion 2.4. RM 2.5 introduced rewritten dynamic variable handling which fixes the other difficult-to-diagnose issues. So, yes, I'd say the specific issues mentioned in that article have been addressed.

Categories : IOS

CUDA Thrust memory allocation issue
It would be useful to see a complete, compilable reproducer code. However you're probably running into memory fragmentation. Even though a large amount of memory may be reported as being free, it's possible that it can't be allocated in a single large contiguous chunk. This fragmentation will then limit the maximum size of a single allocation that you can request. It's probably not really a question of how you are freeing memory, but more a function of what overhead allocations remain after you free the memory. The fact that you are checking the mem info and getting a large number back says to me that you are freeing your allocations correctly. To try to work around this, one approach would be to manage and re-use your allocations carefully. For instance, if you need a large 2.4G

Categories : C++

Memory issue with PDF Pages drawn to view iOS 6.1
With ARC you still have to put some effort into managing Foundation objects. You can release old page using CGPDFPageRelease. Or you can add appropriate attribute to your pdfPage property declaration, as described in this answer.

Categories : IOS

MKMapView with multiple overlays memory-issue
The Answer to this is not "reusing" but to draw them all in to one MKOverlayView and then draw that on the map. Multiple MKPolygons, MKOverlays etc. cause heavy memory-usage when drawing on the map. This is due the NOT reusing of overlays by MapKit. As annotations have the reuseWithIdentifier, overlays however don't. Each overlay creates a new layer as a MKOverlayView on the map with the overlay in it. In that way memory-usage will rise quite fast and map-usage becomes... let's say sluggish to almost impossible. Therefore there is a work-around: Instead of plotting each overlay individually, you can add all of the MKOverlays to one MKOverlayView. This way you're in fact creating only one MKOverlayView and thus there's no need to reuse. This is the work-around, in this case for MKPolygon

Categories : IOS

Memory issue while uploading multiple images to server
Set up the cachePolicy of NSURLRequest to avoid cache, should be similar in ASIFormDataRequest request.cachePolicy = NSURLRequestReloadIgnoringLocalCacheData

Categories : IOS

out of memory issue in installing packages on Ubuntu server
Extend your RAM by adding a swap file: http://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/ a swap file is a file stored on the computer hard drive that is used as a temporary location to store information that is not currently being used by the computer RAM. By using a swap file a computer has the ability to use more memory than what is physically installed in the computer http://www.computerhope.com/jargon/s/swapfile.htm In Short: Login as root: su - or execute the commands with sudo in front dd if=/dev/zero of=/swapfile1 bs=1024 count=524288 mkswap /swapfile1 chown root:root /swapfile1 chmod 0600 /swapfile1 swapon /swapfile1 Now the swap file will be activated temporarily, but will be gone after reboot. You should have enough RAM for your installing process T

Categories : Python

'Catching' OutOfMemoryError completely solves out-of-memory issue?
If you catch the OutOfMemoryError, the garbage collector tries to free up the memory previously used and thus the application can carry on if the application will let the garbage collector do its job (i.e. the application has no longer a reference to that large string of yours). However, catching an OutOfMemoryError is far from fool-proof. See Catching java.lang.OutOfMemoryError?.

Categories : Java

Programmatic custom cell memory leak issue
if you are NOT using ARC just add an autorelease: cell = [[[ConditionReportCustomCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease] ;

Categories : IOS

Reg syncfusion grid dispose memory consumption issue
Grid Control can be disposed by using "Dispose()" method. The Latest version of syncfusion will dispose the grid controls without any memory leak. Kindly, check disposing the object with latest version.

Categories : C#

How to solve memory limit issue in shared host
you can try to add your owen php.ini file in wich you specify : memory_limit = 512M to do so : create a php.ini file in your root folder add memory_limit = 512M create .htaccess file and add this line : SetEnv PHPRC /home/username/folder/php.ini this will load your custom instructions in your php.ini to make sure just run the <?php phpinfo() ?>

Categories : PHP

Memory leak issue in Universal Image Loader
ImageLoader is not an Universal ImageLoader. Android is providing AQuery for Image Loading. You will find aQuery jar file from below link: http://code.google.com/p/android-query/ private AQuery androidAQuery; androidAQuery = new AQuery(getActivity()); androidAQuery.id(your imageview).image(your image value, true, true,default icon(optional));

Categories : Android



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.