Does calling session.invalidate() also removes all the session attriutes?

Hi,
I want to know whether calling session.invalidate() also removes any objects in the session attributes.or we have to explicitly remove objects from the attributes.
I want to know this because my application is having some memory related problems. In my application when a user logs in we put many String objects int the session using session.setAttribute.
Now when the user logs out we call session.invalidate() .
Will these String objects occupy memory (i.e. will they be garbage collected ) after I call session.invalidate() ?
or
I have to explicitly remove all the session attributes programmatically?
Any assistance would be of great help.
Thanks & Regards,
Nirmal

Sigh. The invalidate dereferences all attributes from the current session. If the object doesn't have any other references (servlets? filters? listeners? whatever) then it will be eligible for GC. The object i.e the String objects does'nt have any remaining references after I nullified the arrayList (which was the one and only refeferencing the String Objects).
There isn't any servlet, filter, no other entity that is referencing the arraylist once the user's session is invalidated.
But still when I take the heap dump I'm gettingt those String objects in the heap.........
Once a user logs off we call his/her session.invalidate() and we don't want any of his/her arrayList (containing String objects) in the memory anymore.
Please tell me according to you what should be done in order to get rid of the unwanted String objects in the heap, beside my silly lines of code.
I've load tested the application using jmeter (say for 100 users) and for each of the users the String objects(contained in ArrayLIst) stored in the session are still available even though we called session.invalidate() for each of the user.
This is a major concern for memory related problems that we people are facing here.
Any help would be of great ......
Thanks & Regards,
Nirmal

Similar Messages

  • Shutting down my iPhone 4S no longer removes all the apps that have accumulated on the multitasking bar. What happened?

    Maybe I imagined it, but I could have sworn that holding down the home button and sleep button at the same time until the slider icon appears at the top of the screen, and then engaging the slider icon,  completely shuts down your iPhone and also removes all the apps that have accumulated in the multitasking bar.  But, that does not work anymore on my iPhone 4S running iOS 5.0.1 (9A405).  The iPhone shuts down, but the apps in the multitasking bar remain after you turn the phone back on.  Did I imagine this feature in the past, or has something happened that no longer enables this functionality?  Closing all those open apps in the multitasking bar one at a time is a PIA. 

    imanfromsweden wrote:
    Please apple support do you people have a convincing answer for us? Is there a solution? My phone is only 2 years old and was (2 hours ago), in top condition!!
    Please help....
    On belhalf of my fellow volunteers, the answer is, "We'll try our best." 
    My advice is to try not to treat this like it is a paid service provided by compensated professionals.  Ask nicely and one of the nice folks here might take some time out of their weekend to offer advice.

  • I have a 27" thunderbolt display NOT the iMac, and I'm trying to connect my xbox 360 to it via the Belkin AV360. I plug everything in and it does not work? I check all the power cables and and connections and still not he issue. Iv'e tried C-F2 also. Help

    I have a 27" thunderbolt display NOT the iMac, and I'm trying to connect my xbox 360 to it via the Belkin AV360. I plug everything in and it does not work? I check all the power cables and and connections and still not he issue. Iv'e tried C-F2 also. has anyone used this devive (AV360) on there own 27" thunderbolt display (not the imac) and gotten it to work? If so I'd appreciate the help.

    There are multiple reasons that lead to issue. You should read the troubleshooting guide to get the right solution to solve the issue: iPhone, iPad, or iPod touch not recognized in iTunes for Windows - Apple Support

  • I have accidentally deleted the trash bin in my mailbox and can no longer move any deleted mail into the trash.  I thought I was removing all the emails from the trash but somehow managed to delete the bin instead.  Does anyone know who to reinstate it?

    I have accidentally deleted the trash bin in my mailbox and can no longer move any deleted mail into the trash.  I thought I was removing all the emails from the trash bin but somehow managed to delete the bin instead.  Does anyone know who to reinstate the bin?

    You are running 10.6.8? If yes, I assume you have your install disks? As the trash bin is part of Mail app and that is an integral part of the OS, the only way I know to get it back is to reinstall the OS. You won't lose any files, just reinstall the OS over the top of the current system.

  • I am now using v3.68 and tried updating to v7.01 but it does not seem to work. Went to control panel to remove all the old versions but Firefox was not listed there although Thunderbird is there. Please advise asap, thanks

    I am now using v3.6.8 and tried updating to v7.01 but it does not seem to work. Went to control panel to remove all the old versions but Firefox was not listed there although Thunderbird is there. Please advise asap, thanks

    I recommend backing up your Firefox settings in case something goes wrong during the uninstall/reinstall process. See [https://support.mozilla.com/en-US/kb/Backing+up+your+information Backing up your information]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    In the Control Panel, Add/Remove programs, look for '''Mozilla Firefox'''. Make sure to save (do not delete) your personal settings when uninstalling.
    If it isn't there, just try installing 3.6.23, which is the latest in the 3.6 family. You can download 3.6.23 here: http://www.mozilla.com/firefox/all-older
    With respect to version 7.0.1, are you saying that the installation failed, or it seemed to work but it's nowhere to be found?

  • My ipod touch was stolen, I'd like to remove all the content that was on it...

    So my iPod touch was stolen. I've finally come to terms with the fact that I'll never see it again.
    I'd really like to punish whoever stole it. I already changed all my passwords and billing information (it was stolen with my purse and I already changed my debit card). I signed into iTunes today and it says I have an outstaning balance. Whoever stole it must have tried to buy something before I changed everything. I'm already in the process of getting that taken care of.
    So I looked at my apps and realised that I don't need them any more so I deleted them. It made a note that the content would be removed from ALL my devices, which got me thinking. Is there a way that I can remove all the music from my iPod as well? I dont want them listening to all my awesome music that I bought. I know that if I remove all my music from my library it will take it away from my iPod, but from my computer as well. Does anyone know if there is a way around this? Maybe if I do delete it from my library but get it back somehow, like maybe saving it somewhere else? I know it's a little far-feched but I would feel a little better about some stranger using my iPod (that my brother gave to me as a birthday gift while he was away at the Navy) if they also didnt have access to all the music that he and I bought. Any sort of hints would really be appreciated.
    Thanks =]

    If you set up the Find My iPod service before the iPod was stolen, then if circumstances allow (the iPod is on, connected to WiFi, and the thief hasn't restored the iPod or otherwise disabled the service) you could wipe the device. If you didn't set up the service, though, then there's nothing you can do.
    I looked at my apps and realised that I don't need them any more so I deleted them. It made a note that the content would be removed from ALL my devices.
    I know that if I remove all my music from my library it will take it away from my iPod, but from my computer as well
    That only happens when you sync the iOS device to your computer. It does not remove anything from a non-connected iPod. So there's no need for you to remove your music, nor your apps, from iTunes on your computer since doing so has no effect on the stolen iPod.
    Regards.

  • What Cookies does Apple load after you Remove All

    1)using the latest Safari 5.1 I removed all the cookies then quit.
    2) Opend Safari with Apple default page and the first cookie was of course Apple.com
    3) mzstatic.com quickly showed up fallowed by domaintools.com without me doing anything.
    4) I went to the forums and signed in which prompted edgekey.net to download.
    somehow google got in there too. I think from just clicking on the google box in the top rh corner.
    Does this sound normal? Who's MZSTATIC ? I googled before the last cookie removal and discoverd they are associated with Apple.
    I don't know anything about domaintools?

    mzstatic.com
    See here >  http://whois.domaintools.com/mzstatic.com
    mzstatic.com is registered to Apple Inc.
    "WHOIS Lookup" is a great way to find registration for sties.
    edgekey.net
    At WHOIS points to Akamai Technologies which points to Apple.
    http://whois.domaintools.com/edgekey.net
    http://en.wikipedia.org/wiki/Akamai_Technologies
    Not certain about domaintools but most likely tied into Apple also.

  • How can I remove all the music from my iPhone?

    I want to remove all the music from my iPhone 5 (Current iOS) and then load a completely new set of songs from my Mac (Current OS).
    How do I do that ? 
    Even when I define a specific new playlist and tell it to apply only that it still does not remove the unwanted songs.
    Thanks !

    I feel I've explained plenty what you must do but you aren't getting it.
    All music on your old iPhone should be in your iTunes library on your computer. Transfer the music from your iTunes library on your computer to your new iPhone in the same way it was transferred from your iTunes library to your old iPhone - via the iTunes sync/transfer process.
    Since you prefer the manual way, you must manually drag and drop the same 377 songs from your iTunes library to your new iPhone - in the same way the 377 songs were manually transferred from your iTunes library to your old iPhone.
    Or you can sync which provides more options overall. Create an iTunes playlist for the 377 songs. Select Sync Music under the Music tab for your iPhone sync preferences with iTunes and choose selected playlists, artists, albums, and genres. Select the iTunes playlist below that includes the 377 songs followed by a sync.  

  • My iPhone was connected to my old laptop but that laptop is broken now i want to connect it to a new laptop but when i do that do i also lose all the application data?

    Hello,
    just to explain quikly how my situation is I bought an IPhone and connected it to my regular computer, a few weeks after that i bought an macbook because my old computer was having problems with all kinds of things. recently my old computer "died" and now i cant add any music to my IPhone unless i connect it to my macbook but it's saying it will delete everything on the IPhone and use this library but does it also delete all the application data? for a quik example. Angry birds do you lose your progress on it?
    thank you for helping, Blackhounter

    If you are saying that you didn't back up your old computer ever, especially when you knew it was failing, then you are out of luck; you cannot restore a backup that doesn't exist. However, you can probably save some of your content from the iPhone as follows:
    Connect your iPhone to your new computer, but do not sync
    Authorize iTunes on the new computer to your iTunes account
    Go to the iTunes File menu and choose "Transfer purchases"
    Click on the phone's name in iTunes and then click on the Info tab on the right
    Set up apps on your computer to sync contact, notes and calendar to
    Make sure there is at least one of each in the apps you have selected
    Sync
    You will still lose any non-iTunes music and videos, and any photos in the photo album (but you will not lose the camera roll).

  • I have an apple iMac G5 running Mac OS 10.4.11 can i upgrade it to 10.5? if so will i also loose all the software currently installed on my Mac? eg. Adobe software.

    I have an apple iMac G5 running Mac OS 10.4.11 can i upgrade it to 10.5?
    If so will i also loose all the software currently installed on my Mac? eg. Adobe software.
    I have moved countries (opposite side of world) so i do not have my install disks, or the disks that came with my Mac.
    Where can i get the 10.5 upgrade from?
    Do i need my original disks that came with my Mac?
    - Thanks if anyone can help
    Note:
    I have never had any problems with my G5, it's been my awesome helper these past 7 years, I can't say the same thing for my new Mac, but it seems now my poor G5 is slowly being made redundent because they no longer write software for it.
    I don't see why i should pay for a new Mac because my old one does not always function on the web, or having a new printer because it does not support the new software.
    My New Mac Laptop has had no end of troubles since i bought it less than a year ago.
    What happened to Mac being a sign of Quality??

    First off, all upgrades can potentially break a system.  First and foremost, backup your data before installing anything.  Next read this tip as 10.5 loses Classic compatibility, and has these other issues outlined on the tip: https://discussions.apple.com/docs/DOC-2275

  • I want to use an iPad of another person with my own Apple ID but I want also delete all the old apps of the another person

    I want to use an iPad of my mum with my own Apple ID which I have but I want also delete all the old apps of my mums

    Look at this link.
    Giving your former iPad to a spouse or family member: the quick guide
    http://www.tuaw.com/2012/03/17/giving-your-former-ipad-to-a-spouse-or-family-mem ber-the-quick/
    What to do before selling or giving away your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT5661
    Find My iPhone Activation Lock: Removing a device from a previous owner’s account
    http://support.apple.com/kb/ts4515
    Buying or Selling a Used iPhone or iPad Running iOS 7? Read This First!
    http://www.makeuseof.com/tag/buying-or-selling-a-used-iphone-running-ios-7-read- this-first/
     Cheers, Tom

  • How to reduce the version of a pdf 1.7 to 1.5 & how to remove all the embedded xml form ?

    Hi Team,
        I am using adobe acrobat x pro. I have a pdf file of version 1.7 which showing embedded xml forms. I tried to remove all the 'embedded xml form' by  using Adobe Live cycle Designer ES2.  Then i tried to reduce the version by using Adobe acrobat x pro but it's still showing that there are some 'embedded xml form' for which it's not allowing me to reduce the vesion of pdf file in Adobe Acrobat x pro and also i want reduce the version of the pdf 1.7 to 1.5. Can you please guide me the step to reduce the pdf file version and how to remove the embedded xml form from the pdf file ?

    If the PDF is the same one from the link in your post here:
    http://forums.adobe.com/thread/1174643
    That PDF being protected may have something to do with why you cannot do what you'd like to.
    Be well...

  • Remove all the backup details

    how can I remove all the backup details that I have taken using rman nocatalog .
    I want to delete all the backup details from the control file and from the physical location where the backups have been stored.
    My oracle version is 10.2.0 on solaris 10.

    Use "list backup" command to first identify which backups you want to delete.
    Once identified and you are sure go ahead and use DELETE command as describe din above post.
    There is another way also. If you are sure about the physical location of the backups you need to delete. Just delete them from the physical location using OS commands and then use the CROSSCHECK command in RMAN. This will remove those backups from the CONTROLFILE also.
    If its production, think twice before deleting anything. Do test your operations on a test database to make sure they will work as expected.

  • Removing all the hidden data from photos

    If I export a photo to share, I often want to remove all the extra hidden stored data such as date taken exposures etc. Is this easy?
    Rod

    Hi rod,
    By accident I found that a little app I use (ImageWell) to add connotations and text to my screenshots also strips most if not all the EXIF data from an image that you drag out of the Image well.
    I just checked it out again. I dragged an image into the well, changed the name of the image and dragged it out. The EXIF data was gone when I opened it with Preview and did Tools/Get info.
    ImageWell

  • Cannot reopen firefox, since it's already active. Cannot kill the process in taskmanager. Already uninstalled and removed all the programm files... same problem occurs?? Tried to change the profile etc... nothing works..

    Cannot reopen firefox, since it's already active.... Cannot kill the process in taskmanager.
    Already uninstalled and removed all the programm files... same problem occurs??
    Tried to change the profile and all other actions I found on the support website etc... nothing works..
    When I opened firefox some weblinks in pages I visited (for example the pop up of the calendar on the ryanair website did not work...)... This also happens in the ewplorer and google I use now...
    Can anyone advise me in this? Many thanks?

    Cannot reopen firefox, since it's already active.... Cannot kill the process in taskmanager.
    Already uninstalled and removed all the programm files... same problem occurs??
    Tried to change the profile and all other actions I found on the support website etc... nothing works..
    When I opened firefox some weblinks in pages I visited (for example the pop up of the calendar on the ryanair website did not work...)... This also happens in the ewplorer and google I use now...
    Can anyone advise me in this? Many thanks?

Maybe you are looking for

  • Bug in JSpinner / SpinnerNumberModel

    if use following constructor and pass BigDecimal instances for the four arguements then it accepts but on increasing value it throws ClassCastExecpetion. public SpinnerNumberModel(Number value, Comparable minimum, Comparable maximum, Number stepSize)

  • Abou Receiver Mail Adapter?

    Hi All, Iam doing File to Mail Senario,where in mail i have to send an Attachement..........i have done it successfully iam geting the Attachment in Mail.........but my Client requirement is he need the Body and Attachment.......iam tring this but ia

  • VAT REPORT-POLAND

    Hi Gurus, My company runs a VAT Report-Poland Every month and one thing they are finding out is that the total line items of the all documents posted(for specific Tax code) is different from deductible amounts at the bottom .Business claims that both

  • Cannot find period to open in Receivables

    Hi all, I am trying to open new period in Receivables, but the open/close accounting periods show no period to open. I cannot even retrieve my ledger. The following error appear "FRM-40735: when new-form-instance trigger raised unhandled exception OR

  • Font with "83pv-RKSJ-H*" will not change

    Hi I hope someone can help with a really frustrating problem. We were using Interstate-Regular PostScript Type 1 font for many years when we discovered that quite a few files were displaying the wrong version. Rather than the CS2 file looking for Int