Help please jvm out of memory

Could some some please help me with this i hava a programe which is reading email from amd email sever using javamail.
My problem is that when this pgrograme have to read more than 27 thousand emails and filter them at the same time but as soon as i get to 5900 the jvm runs out of memory. i have tried increaing memory using -Xms and Xms this seem to work but i still get memory leaking could some one have a look at my code i would be very happy to any light at to why or where the leak is comming from.
at the moment i have managed to track the leak to the "searchEMail" method
if you cam help my email is [email protected] or [email protected]
=====================================================================
EmailFilter.java
wokoli
=====================================================================
import java.io.*;
import java.util.*;
import java.awt.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.swing.JProgressBar;
import javax.swing.JWindow;
public class EmailFilter
  extends Authenticator implements EmailHelper
  protected String from=null;
  protected Session session=null;
  protected PasswordAuthentication authentication=null;
  private Properties props=null;
  private TreeMap bounced=null; 
  private long start=0;
  private long end=0;
  private PrintWriter out=null;
  private int blockSize=100;
  private Store store=null;
   public EmailFilter(Properties props){  
    this(null, null,props);
  public EmailFilter(String user, String host,Properties props)
  try{      
    if(props==null)
      props = new Properties();
      System.out.println("Reading properties file...");
      props.load(new FileInputStream("config.properties"));
      from = user + '@' + host;     
      props.setProperty("mail.user", user);
      props.setProperty("mail.host", host);
      props.setProperty("mail.password",user);     
  }catch(Exception e){
     e.printStackTrace();
    authentication = new PasswordAuthentication(props.getProperty("mail.user"),props.getProperty("mail.password"));
    props.setProperty("mail.store.protocol", "pop3");
    props.setProperty("mail.transport.protocol", "smtp");
    session = Session.getInstance(props, this);
    blockSize=Integer.parseInt(props.getProperty(BLOCKSIZE));
    this.props=props;       
    processCsvFile();
private int column=0; 
protected void processCsvFile()
  Recipient resp=null;
  BufferedReader reader=null;
  try {
    File  file=new File("report.csv");
    if(!file.exists())
     return;      
    System.out.println("Reading report.cvs file...");
    reader= new BufferedReader(new FileReader(file));
    StreamTokenizer parser = new StreamTokenizer(reader);
    parser.wordChars(' ', ' ');
    parser.wordChars('@', '@');
    parser.wordChars(':', ':');
    parser.wordChars('-', '-');
    parser.wordChars('"', '"');
    parser.eolIsSignificant(true);
    int nxtToken=0;
    while ((nxtToken=parser.nextToken()) != StreamTokenizer.TT_EOF )
      if(nxtToken==StreamTokenizer.TT_EOL)
       column=0;     
       resp=new BouncedEmail();
     if(parser.lineno()>1)
      switch (parser.ttype)
        case StreamTokenizer.TT_NUMBER:
         switch (column)
            case 1:{
               resp.setCount((int)parser.nval);       
                   column++; break;
           break;
        case StreamTokenizer.TT_WORD:
           switch (column)
            case 0:{                             
                resp.setEmail(parser.sval);            
                   column++; break;}
            case 2:{
             String str=parser.sval.replace('"',' ');;
                resp.setDate(str.trim());     
                   column++;break;}
            case 3:{                  
             String str=parser.sval.replace('"',' ');;
                resp.setTime(str.trim());                 
                   column++; break;}
           break;
           default:
         addBounced(resp);
       } catch (IOException e){
           e.printStackTrace();
      }finally{
      try{
          if(reader!=null)
              reader.close();      
         }catch(IOException ioe){
        ioe.printStackTrace();
  public PasswordAuthentication getPasswordAuthentication(){
    return authentication;
  private boolean searchEmail(MimeMessage msg)
   String criteria=null;
   String str=null;
try{      
    criteria=(String)props.get(FROM);
    str=(String)msg.getFrom()[0].toString();
    if(criteria!=null && criteria.length()>1 && str!=null && str.length()>1)
     if(doSearch(str,criteria)==BOUNCED)
       return BOUNCED;
   criteria=(String)props.get(SUBJECT);
   str=(String)msg.getSubject();
   if(criteria!=null && criteria.length()>1 && str!=null && str.length()>1)
    if(doSearch(str,criteria)==BOUNCED)
     return BOUNCED;  
  /*criteria=(String)props.get(BODY); 
   Object  o = msg.getContent();
  if (o instanceof String) {
    str=(String)o;   
   } else if (o instanceof Multipart) {
    Multipart mp = (Multipart)o;
    //int count = OutOfMemoryErrormp.getCount();
    //for (int i = 0; i < count; i++)
    //dumpPart(mp.getBodyPart(i));
   } else if (o instanceof InputStream) {
     //System.out.println("--This is just an input stream");
     //InputStream is = (InputStream)o;
     //int c;
     //while ((c = is.read()) != -1)
     //     System.out.write(c);
  if(criteria!=null && criteria.length()>1 && str!=null && str.length()>1)
    if(doSearch(str,criteria)==BOUNCED)
     return BOUNCED; 
}catch(OutOfMemoryError oome){
    System.out.println("while in searchEmail "+oome);   
    System.out.println("while in searchEmail "+oome.getStackTrace());
    finalize();
    System.exit(0);  
  catch(javax.mail.internet.AddressException ae){}
  catch(NullPointerException npe){}
  catch(Exception ex){
   //ex.printStackTrace();
   ex.getMessage();
  return !BOUNCED;
  //str is the content that you wnat to search and criteria is the 
  //what you are searching for
  //str      -> From, Subject or Body from Message Object
  //criteria -> From, Subject or Body from Prop file 
  private boolean doSearch(String str,String criteria)
  if(str==null || criteria ==null)
     return !BOUNCED;
    StreamTokenizer token=new StreamTokenizer((Reader)new StringReader(criteria));
    StringSearch sch=new StringSearch(str.getBytes());
    token.wordChars(' ', ' ');
    token.wordChars('@', '@');
    token.wordChars(':', ':');
    token.wordChars('-', '-');
    token.wordChars('"', '"');
    token.eolIsSignificant(true);
    int nxtToken=0;
    try{
    while ((nxtToken=token.nextToken()) != StreamTokenizer.TT_EOF )
       if(token.ttype==StreamTokenizer.TT_WORD)
     if(sch.indexOf(token.sval)>-1)
          return BOUNCED;              
      }catch(OutOfMemoryError oome)
         System.out.println("while in doSearch ");
         oome.printStackTrace();
    }catch(IOException ioe){
     ioe.printStackTrace();
    return !BOUNCED;
  public void sendMessage(String to, String subject, String content) throws MessagingException
      MimeMessage msg = new MimeMessage(session);
    msg.addRecipients(Message.RecipientType.TO, to);
    msg.setSubject(subject);
    msg.setText(content);
    Transport.send(msg);
  private void addBounced(Recipient resp)
    if(resp==null)
     return;        
    if(bounced==null)
         bounced=new TreeMap();
    String email =resp.getEmail();
    if(email==null)
         return;
     if(isExisting(email)==null){    
       bounced.put(email,resp); 
  private String isExisting(String key)
   if(key==null || bounced==null)
    return null;    
  String name=null;
  Iterator itr=bounced.keySet().iterator();
  while(itr.hasNext())
   name=(String)itr.next();
   if(name==null)
      return null;
   if(name.equals(key))
    return name;
  return null;
private void writeReport()
  if(bounced==null)
       return;
  Recipient resp=null;  
  File file =null;
   try{
  if(out==null) //writing for to file for the first time
    file=new File("report.csv");
    if(file.exists())
     System.out.println("Found and deleted report file "+file.delete());
     file =new File("report.csv");
     out =new PrintWriter(
          new BufferedWriter(
          new FileWriter(file)),true); 
      out.println("Email,Count,Last Date Bounced,Lasted Time Bounced");    
   Iterator itr=bounced.keySet().iterator();
   String key=null;
   System.out.println("Writing report...");
   while(itr.hasNext())   
    key=(String)itr.next();
    resp=(Recipient)bounced.get(key);
    out.println(key+","+resp.getCount()+",\""+resp.getDate()+"\",\""+resp.getTime()+"\"");     
   }catch(Exception ex){
    ex.printStackTrace();
   }finally{
    if(bounced!=null)
     bounced.clear();
     bounced=null;
     out.flush();
private void collectGarbage()
  System.out.println("mem before "+Runtime.getRuntime().freeMemory());
  Runtime.getRuntime().gc();
  System.out.println("mem after "+Runtime.getRuntime().freeMemory());
  System.out.println("Garbage collected");     
private void createBouncedEmail(String email,String date, String time,int count)
   if(email==null)
    return;
   String name=isExisting(email);
   if(name!=null)
    Recipient res=(Recipient)bounced.get(name);
    bounced.remove(name);             
    int c=res.getCount();
    addBounced(new BouncedEmail(email,res.getDate(),res.getTime(),++c));
   }else  
   addBounced(new BouncedEmail(email,date,time,count));
  public void checkInbox(int mode) throws MessagingException, IOException
   Folder inbox=null;
//   Store store= null;
   JProgressBar pbar=null;
   JWindow window=null;
   try
    if (mode <0) return;
     boolean show = (mode & SHOW_MESSAGES) > 0;
     boolean clear = (mode & CLEAR_MESSAGES) > 0;
     String action =
      (show ? "Show" : "") +
      (show && clear ? " and " : "") +
      (clear ? "Clear" : "");
     System.out.println("Checking mail on: "+props.getProperty("mail.host"));     
     store = session.getStore();
     System.out.println("Trying to connect to mail server: "+props.getProperty("mail.host"));
     store.connect();    
     System.out.println("Connected on mail server : "+getRequestingSite());    
     Folder root = store.getDefaultFolder();    
     inbox = root.getFolder(INBOX);
     System.out.println("Opening mail folder for Reading");    
     inbox.open(Folder.READ_ONLY);
     Message[] msgs = inbox.getMessages();
     if (msgs.length ==0){
      System.out.println("No messages in inbox");
    for (int cnt = 0; cnt < msgs.length; cnt++)
      MimeMessage msg = (MimeMessage)msgs[cnt];
      System.out.println("Reading msg "+cnt);
     if(searchEmail(msg)==BOUNCED)
      createBouncedEmail(msg.getFrom()[0].toString(),null,null,-1);
     if (show)
         System.out.println("    From: " + msg.getFrom()[0]);
         System.out.println(" Subject: " + msg.getSubject());
         System.out.println(" Content: " + msg.getContent());
     if (clear)
        msg.setFlag(Flags.Flag.DELETED, true);
     if((bounced!=null && bounced.size()==blockSize) || cnt==msgs.length-1)
      writeReport();
     if(cnt%100==0)
        collectGarbage();
    //writeReport();
    //end=new Date().getTime();
    //System.out.println("Time complted: "+new Date());  
    //System.out.println("Time taken to complete: "+new Date(end-start));
   }catch(OutOfMemoryError oome)
         System.out.println("while in checkInbox ");
         oome.printStackTrace(); 
   }catch (AuthenticationFailedException afe){
        afe.printStackTrace();
   }finally{
   if(window!=null)
     window.dispose();
   if(inbox!=null)
    inbox.close(true);
   if(store!=null)
    store.close();
   if(out!=null)
    out.close();
protected void finalize() 
      try{
           if(out!=null)
  out.close();
           if(store!=null)
  store.close();
  System.out.println("Closing connection...");
      }catch(Exception ex){
      ex.printStackTrace();
}

Cross posted
http://forum.java.sun.com/thread.jsp?thread=429947&forum=4&message=1920034

Similar Messages

  • Can anyone help with an out of memory error on CS2?

    Hello,
    I have been battling with an out of memory error on a dell laptop running 2gb of ram. I have had no prior issues with this laptop running CS2 until last week when I started getting the out of memory errors. I have seen several articles about this occuring on later versions of illustrator. Just prior to this issue appearing I had to delete and rebuild the main user profile on the computer due to it consistently logging into a temporary account.
    Once the new profile was established and all user documents and profile settings were transferred back into it, this problem started showing up. The error occurs when clicking on files listed as Illustrator files, and when opening the illustrator suite. Once I click on the out of memory error it still continues to load illustrator. The files are located on a server and not on the remote computer. I have tried to copy the files to the local hard drive with the same result when I try to open them. I also tried to change the extension to .pdf and got no further. I tried to open a file and recreate the work and all I got was the black outline of the fonts. none of the other artwork appeared. once rebuilt, when trying to save, It gives the out of memory error and does not save the file.
    Illustrator was installed on another dell laptop, same model, etc and works fine. no problem accessing network files. I just attempted to use Illustrator from the admin profile on the machine in question and it works fine and lightening fast. Just not from the new rebuilt profile. I have tried to uninstall and reinstall the software. it has not helped. could there be stray configuration settings that we transfered over to the new profile that should not have been?
    Any insights will be helpful.
    Thank You,
    Brad Yeutter

    Here are some steps that could help you:
    http://kb2.adobe.com/cps/320/320782.html
    http://kb2.adobe.com/cps/401/kb401053.html
    I hope this helps!

  • Multiple applets, single JVM == out of memory

    Consider the following applet (MS IE 6, JRE 1.4.2_04)
    public class DgAppletTest extends JApplet
    double nums[];
    public void init() {
    nums = new double[10000000];
    public void start() {
    public void stop() {
    public void destroy() {
    This does nothing except allocate a large array. When this is delivered to the browser as part of an html page, a JVM instance is created and so on. The plug in control panel confirms the memory usage. When the user closes the browser window, the applet is "destroyed" but curiously the memory is not gc'ed. The next time the page is delivered the same JVM is used with the current memory situation. The result is that very soon the memory is exhausted.
    Once upon a time, Microsoft launched each browser instance into a separate process. No longer, although there is a registry hack to make it do so. When as a separate process, each browser window instantiates a new JVM. In this scenario, there's no problem. However, hacking the registry is not a solution, nor is telling the end user to modify JVM startup parameters.
    So, what am I not doing? (calling the gc within the applet has no effect on this). What's the trick to get the JVM to actually destroy the destroyed applet?
    Thanks

    http://forum.java.sun.com/thread.jspa?threadID=605153&messageID=3276004
    Quote from another thread:
    Objects are never null. Only references can be null. If you set the only reachable
    reference to the object to null (or to any value other than pointing at that object), then the
    object becomes eligible to be garbage collected. When--or if--it actually gets cleaned up
    is beyond your control, but it's guaranteed to happen if the memory is needed.
    Which is basacally the same as what this tells you:
    http://java.sun.com/developer/technicalArticles/ALT/RefObj/
    under
    Softly Reachable

  • Help Please - Running out of Disk Space

    I run minimal apps on my iMac.
    Hard drive size:1000GB
    Using "get info" under my Mackintosh HD, I have the following space used:
    Applications folder uses: 33.13 GB
    Library folder uses: 8.94 GB
    System folder uses: 4.95GB
    Users folder uses: 3.61 GB
    for a total used of about 50 GB
    But when I do "get info" on my Mackintosh HD, it says I have 899 GB used.
    Where are the other 849 GB being used?  I'm running out of space with no way to figure out what is using the space.
    I am running Mac OS X 10.6.8.
    Yes. I have rebooted.  The used disk space amount remains the same.
    Any assistance would be appreciated.

    Here are some space liks.
    http://www.macworld.com/article/1165698/seven_ways_to_free_up_drive_space.html
    http://support.apple.com/kb/PH10677?viewlocale=en_US
    http://www.macworld.com/article/1052495/slimharddrive.html
    https://discussions.apple.com/thread/5464403?tstart=0
    http://pondini.org/OSX/LionStorage.html
    ttp://www.thexlab.com/faqs/faqs.html
    http://thexlab.com/faqs/freeingspace.html
    lhttp://pondini.org/OSX/DiskSpace.html
    Maybe some of these will help you

  • Help please, talking out of synch?

    Hey there,
    Im using imovie 11, and have a problem. I have made a 6 minute snowboarding feature, with 1 song in the background, it has about 4 small 15-20 second interviews in it. Everytime i play it from the start the 'dubbing' seems to go out (people talking, mouth moving at different times to words)
    I have tryed to fix this problem but have had no luck? any suggestions?
    Cheers Robie

    If you go to the Project Browser and click on one clip, then select all (⌘ Command key + A) Then go to the File Menu choose Optimize Video > Large Size. Does it allow you to choose that option or any Optimize options?
    Another trick to re-establishing sync is to detach the audio. Select a clip, go to the Clip Menu > Detach Audio:

  • JVM out of memory (I want to solve this with out increasing the heap size)

    public ThreeVec findVec(double[] pix_lab,double[][] graphic_labs){
    ThreeVec result = new ThreeVec();
    Vector<Double> diff = new Vector<Double>();
    Vector<Double> tempdiff = new Vector<Double>();
    double d1,d2,d3;
    for(int i=0;i<graphic_labs.length;i++){
    d1 = graphic_labs[0]-pix_lab[0];
    d2 = graphic_labs[i][1]-pix_lab[1];
    d3 = graphic_labs[i][2]-pix_lab[2];
    diff.add(Math.sqrt((d1*d1)+(d2*d2)+(d3*d3)));
    tempdiff.add(Math.sqrt((d1*d1)+(d2*d2)+(d3*d3)));
    Collections.sort(tempdiff);
    int[] vecIdx = new int[3];
    vecIdx[0] = diff.indexOf(tempdiff.elementAt(0));
    vecIdx[1] = diff.indexOf(tempdiff.elementAt(1));
    vecIdx[2] = diff.indexOf(tempdiff.elementAt(2));
    double[][] vecs = new double[3][3];
    vecs[0][0] = (graphic_labs[vecIdx[0]][0]);
    vecs[0][1] = (graphic_labs[vecIdx[0]][1]);
    vecs[0][2] = (graphic_labs[vecIdx[0]][2]);
    vecs[1][0] = (graphic_labs[vecIdx[1]][0]);
    vecs[1][1] = (graphic_labs[vecIdx[1]][1]);
    vecs[1][2] = (graphic_labs[vecIdx[1]][2]);
    vecs[2][0] = (graphic_labs[vecIdx[2]][0]);
    vecs[2][1] = (graphic_labs[vecIdx[2]][1]);
    vecs[2][2] = (graphic_labs[vecIdx[2]][2]);
    Matrix vec_matrix = new Matrix(vecs);
    Matrix vec_mat_inv = vec_matrix.inverse();
    Matrix pix_matrix = new Matrix(1,3);
    pix_matrix.set(0,0,pix_lab[0]);
    pix_matrix.set(0,1,pix_lab[1]);
    pix_matrix.set(0,2,pix_lab[2]);
    Matrix abc = pix_matrix.times(vec_mat_inv);
    result.setVecIdx(vecIdx);
    result.setABC(abc);
    return result;
    Matrix is the class defined in JAMA library.
    I am getting OutOfMemoryError in this method.
    Let me explain. The above method is called from a nested 'for' loop something like the pseudocode below.
    BufferedImage in_graphic = ImageIO.read(graphic);
    for(int j=0;j<in_graphic.getHeight();j++){
    for(int i=0;i<in_graphic.getWidth();i++){
    findVec(param1,param2);
    lengths of param1 and param2 are fixed
    param1's length is always 3
    param2.length is 8 and param2[i] is 3
    I thought that this code is independent of image size but it not. As the image size increases beyond a certain size I am getting OutOfMemoryError. I dont know why am I doing something wrong here. Thanks in advance.

    I know you asked about a memory issue, not a speed issue. But, another slight speed-up would be to compute the square root once, and then put it in both lists:
    diff.add(Math.sqrt((d1*d1)+(d2*d2)+(d3*d3)));
    tempdiff.add(Math.sqrt((d1*d1)+(d2*d2)+(d3*d3)));could be:
    Double distance = Double.valueOf(Math.sqrt((d1*d1)+(d2*d2)+(d3*d3)));
    diff.add(distance);
    tempdiff.add(distance);That not only speeds it up (fewer calculations), but it creates half as many Double objects as your way was creating.
    Autoboxing is slowing you down, too. (The use of Double and the autoboxing will go away if you use ejp's suggestion to use arrays of double. But, you could still compute that value only once.)
    Your Vector<Double> are local variables, anyway. If I'm reading your code correctly, they are each only 8 elements long. If so, that's not the main memory issue. Using an array of double primitives will use a little less memory and will be faster, but I don't think the Vector<Double> is the biggest issue. You aren't storing the references to those Vectors anywhere, so they will be eligible for garbage collection at the end of the method.
    So, I know you said it was pseudocode, but your pseudocode as to how findVec was called didn't even use the return value (the ThreeVec that the method creates). Maybe if you explain better what param1 and param2 are (how they are calculated based on height and width, or other useful information), someone could give you a better suggestion. Also, what's a ThreeVec, anyway?
    Maybe try posting the actual code for your loop, instead of pseudocode. Use the CODE button (above the posting box) to format your code nicely.

  • I'm in Bali and my Iphone is missing. Need help please figuring out what to do.

    I tried to locate it by using ICloud but got a message says the phone is offline.  Then I locked it via I Cloud. Now I have an email saying:
    "Putra wijaya was locked at 10:57 PM on April 19, 2012 using your new passcode.", and IPhone shows this name listed on my phone on ICloud. I'm trying to track down this person but it may be impossible since it the phone location won't show up on I Cloud.. What should I do? I sent a message to the phone offering a reward but I'm not sure if the message will get through if the phone is locked. If it's locked does that mean the person can't use it?  Why does the phone now have this persons name attached to it on my I Cloud page? Should I wipe the phone and cut my losses?  If I wipe it does that mean I no longer can communicate with it? My hope was that if the phone is locked the person can't use it, and if he gets the message I sent offering a reward, he will return it.  But I have no idea if the message will get through, or how this all works with I Cloud. Thanks so much for advice!

    The searching is not wi-fi related - it is searching for a cell network. You need to disable 3G and Cellular data uder Settings, General, Network.
    To find your settings and google icons, swipe the screen left to reveal other screens - they're there somewhere

  • Help please :( Curve 9300 track pad stopped working!

    Hello,
    I have a curve 9300 and the track pad has stopped working it lets me move around fine but when i click to open things nothing happends its just stopped working ive only had  the handset  around a month im wondering is there anyway to resolve the problem and get it working again or do i need to send it some where to get fixed?

    Hi and welcome to the forums Lotte !
    A couple of places for you to visit: Blackberry 101    Tips & Tricks
    Pull the battery out with the device ON. Wait about a minute and put the battery back in. Let the BB completely restart and see if that doesn't help. Clears out the memory and refreshes the BB; like rebooting your pc. 
    When you have anomalous behavior in your BB a battery pull often helps to clear it up too.
    Let us know ow it goes..Happy to have you here!
    IrwinII
    Please remember to "Accept as Solution" the post which solved your thread. If I or someone else have helped you, please tell us you "Like" what we had to say at the bottom right of the post.

  • "There was an error processing a page. Out of memory." Adobe Acrobat 9 Pro-Please Help!

    "There was an error processing a page. Out of memory." Adobe Acrobat 9 Pro I had this problem with my last computer over two years ago which was obviously an older version of windows and acrobat and had found a way to solve it but like I said it was an older version and was 2 years ago so I don’t remember how to fix it. I’ve looked through many forums and emptied my temp folder I’ve uninstalled and reinstalled the software I’ve turned off my anti-virus I don't have adobe reader because I know this causes comflicts also and have tried so much more and I’m still having issues with about half my pdf files I cannot figure it out. I use pdf files many times a day and this is really hindering my work so please please please if anyone else has experienced this or knows how to fix it that would be great thank you!!! I’m somewhat computer savvy but not completely so if you cloud please explain to me in slightly less tech terms that would be great too.

    Assuming your disk is not too full, and your virtual memory settings are normal, this is not caused by software clashes, TEMP folders nor fixed by reinstalls. It is Acrobat _actually_ running out of memory, or running out of something else it has a fixed supply of.
    1. Are you using any plug-ins to process files?
    2. After you get this error on a particular file, restart Acrobat. Does the file now open OK?

  • Error: out of memory.. please help

    it's been a while since I posted, But I am in dire need of some help.
    I run the latest FCP on a powermac g5 quad. 2.5 Ghz, 4 CPU , 1MB L2 cache per CPU, 1.25 bus speed, 2GB ram.
    I shot and edited an HDV corporate video. Its been done for a while, after a number hours of trial testing, I got my project compressed and put it on a DVD and produced 500 copies. MY client is happy.
    the question
    I am a new editor and gaining experience everyday. Its time that I clear my Hard drive of this massive project. the video ended up being 40 minutes, with lots of cuts, and lots of livetype graphics for lower thirds and graphic boards.
    I am trying to "print to video" my timeline back to my camera so I can save it. as I don't need all this footage on my hard drive.
    SO...
    1) how do most of you guys backup your stuff? I want to send my HDV sequence back to my Z1U, and probably make some quicktime movies to keep on my computer. if i do that can i edit from that in the futrue? for things like making a demo reel or incase i need to burn more DVDs. I don;t want to erase anything until i know im safe.
    2) when i select print to video... it takes quite a long conforming process which i understand happens. but when it is done after like 2 hours.. i get the error message : out of memory.
    my computer is fairly new and i don't know why it is doing this.
    i was thinking does the sequence im doing have to be less then the 2 g of ram to have to work? i really don't understand. i just want to send my sequence back to my camera.
    again.. i know there is a lot of questions.. but ive spent the last 2 days reading books and doing searches and can't find any answers.
    any help would be greatly appreciated.
    -kcow

    thanks mike... i checked and i dont have any cmyk... only .ipr
    jsut from what i've read you should back up back to your camera as well. Just to have that on tape incase my hard drives crash
    I could have done a better job capturing, but where im doing so from my z1u. I didnt want to wear out my heads. So i deselected create new clip on timecode breaks. So what I did was capture the entire tape.. then I went back and made subclips. Would i still be able to use media mangaer then? or am i screwed because the subclips i dont need are still connected to the master clips which i need for the subclips that i edited from? hahah thats a tounge twister. yah i think it was like 7-8 gigs worth of a project.

  • Weblogic 6.1 deployment out of memory error - please help

    I am getting an out of memory error when deploying an ear to a weblogic 6.1 server. I tried increasing heap size with the startup param. I also tried upgrading the jdk to 1.3.1_02. Here is how I am starting weblogic -
    "%JAVA_HOME%\bin\java" -hotspot -XX:MaxPermSize=256m -ms64m -mx64m -classpath "%CLASSPATH%" -Dweblogic.Domain=mydomain -Dweblogic.management.discover=false -Dweblogic.Name=myserver "-Dbea.home=C:\bea" -Dweblogic.management.password=%WLS_PW% -Dweblogic.ProductionModeEnabled=%STARTMODE% "-Djava.security.policy==C:\bea\wlserver6.1/lib/weblogic.policy" weblogic.Server
    I tried 64, 128, and 256 for the MaxPermSize param and the larger I make this number, the longer the deploy takes. I also tried lowering the session timeout to 1 min from 30. Now, when I deploy to the weblogic connection, jdev writes the war, then hangs. The rest of my desktop is slow but responsive, but I let jdev go for up to 1hr when running this deploy, and it never even starts the weblogic.deploy call. I end up killing it. This ear is not very big and is a simple servlet.
    Any thoughts?

    repost

  • OUT OF MEMORY PLEASE HELP!!

    I have a Mac book Pro with 120 Gigs of HD space and I have somewhere in the neighborhood of 30gigs memory just for Lightroom catalogs of all my clients. I am out of memory for storage, but need to a access my client catalogs periodically. What can I do???

    holy bullet,
    Not to be pedantic, but you're talking about
    storage
    NOT
    memory here, as your subject line suggested. You might have 2Gb of memory in your computer, but your storage capacity is 120Gb (your hard disk drive).
    As John said, you either need to buy an external hard drive with more capacity and move your catalog(s) there, or upgrade your internal hard drive. The latter option will probably cost you less money (per gigabyte of storage) and time, while giving you better growth options in the future. Recommendations I've seen suggest choosing an external drive that uses high-speed Firewire, rather than USB, for better performance and stability. John's suggestion of offloading the smaller client catalogs to the external drive sounds excellent.
    If you do create a new catalog for a client, then import those photos, be sure to remove them from your main catalog so you don't chew up additional space needlessly (and cause confusion).
    Good luck

  • Oracle 9i Database installation error ORA-27102: out of memory HELP

    Hello
    Appologies if this post has been answered already, or if I am meant to post some data capture to show what is the issue however i am a bit unsure what I need.
    I have downloaded oracle 9i for my university course as I need to have it to do some SQL and Forms building.
    I have had a lot of issues but I have battled through them - however now I am stuck on this one.
    I install Oracle and then the below:
    Install Oracle Database 9.2.0.1.0
    Personal Edition 2.80gb
    General Purpose
    I leave the defualt port
    Set my database name
    Select the location
    Character set etc
    then the database config assistant starts to install the new database at 46% i get the error on a pop up window :
    ORA-27102: out of memory
    How can I resolve this??
    I am a mainframe programmer and not at all in anyway a windows whizz - please oculd someone help a dummy understand??
    Again thank you all very much

    You have too few RAM on your machine, even you could successfully create an instance, it's going to slow as hell.
    When you run DBCA to create database, instead of actually creating the database you could choose to dump the SQL scripts and files used for database creation to a directory. This way will give you a chance to modify pfile and reduce the SGA parameter. I believe the default SGA of instance created by DBCA is already beyond your RAM limit.

  • Server goes out of memory when annotating TIFF File. Help with Tiled Images

    I am new to JAI and have a problem with the system going out of memory
    Objective:
    1)Load up a TIFF file (each approx 5- 8 MB when compressed with CCITT.6 compression)
    2)Annotate image (consider it as a simple drawString with the Graphics2D object of the RenderedImage)
    3)Send it to the servlet outputStream
    Problem:
    Server goes out of memory when 5 threads try to access it concurrently
    Runtime conditions:
    VM param set to -Xmx1024m
    Observation
    Writing the files takes a lot of time when compared to reading the files
    Some more information
    1)I need to do the annotating at a pre-defined specific positions on the images(ex: in the first quadrant, or may be in the second quadrant).
    2)I know that using the TiledImage class its possible to load up a portion of the image and process it.
    Things I need help with:
    I do not know how to send the whole file back to servlet output stream after annotating a tile of the image.
    If write the tiled image back to a file, or to the outputstream, it gives me only the portion of the tile I read in and watermarked, not the whole image file
    I have attached the code I use when I load up the whole image
    Could somebody please help with the TiledImage solution?
    Thx
    public void annotateFile(File file, String wText, OutputStream out, AnnotationParameter param) throws Throwable {
    ImageReader imgReader = null;
    ImageWriter imgWriter = null;
    TiledImage in_image = null, out_image = null;
    IIOMetadata metadata = null;
    ImageOutputStream ios = null;
    try {
    Iterator readIter = ImageIO.getImageReadersBySuffix("tif");
    imgReader = (ImageReader) readIter.next();
    imgReader.setInput(ImageIO.createImageInputStream(file));
    metadata = imgReader.getImageMetadata(0);
    in_image = new TiledImage(JAI.create("fileload", file.getPath()), true);
    System.out.println("Image Read!");
    Annotater annotater = new Annotater(in_image);
    out_image = annotater.annotate(wText, param);
    Iterator writeIter = ImageIO.getImageWritersBySuffix("tif");
    if (writeIter.hasNext()) {
    imgWriter = (ImageWriter) writeIter.next();
    ios = ImageIO.createImageOutputStream(out);
    imgWriter.setOutput(ios);
    ImageWriteParam iwparam = imgWriter.getDefaultWriteParam();
    if (iwparam instanceof TIFFImageWriteParam) {
    iwparam.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
    TIFFDirectory dir = (TIFFDirectory) out_image.getProperty("tiff_directory");
    double compressionParam = dir.getFieldAsDouble(BaselineTIFFTagSet.TAG_COMPRESSION);
    setTIFFCompression(iwparam, (int) compressionParam);
    else {
    iwparam.setCompressionMode(ImageWriteParam.MODE_COPY_FROM_METADATA);
    System.out.println("Trying to write Image ....");
    imgWriter.write(null, new IIOImage(out_image, null, metadata), iwparam);
    System.out.println("Image written....");
    finally {
    if (imgWriter != null)
    imgWriter.dispose();
    if (imgReader != null)
    imgReader.dispose();
    if (ios != null) {
    ios.flush();
    ios.close();
    }

    user8684061 wrote:
    U are right, SGA is too large for my server.
    I guess oracle set SGA automaticlly while i choose default installion , but ,why SGA would be so big? Is oracle not smart enough ?Default database configuration is going to reserve 40% of physical memory for SGA for an instance, which you as a user can always change. I don't see anything wrong with that to say Oracle is not smart.
    If i don't disincrease SGA, but increase max-shm-memory, would it work?This needs support from the CPU architecture (32 bit or 64 bit) and the kernel as well. Read more about the huge pages.

  • Out of memory error in IBM JVM

    Hi i am using websphere application server's dyna cache for getting performance optimiztion in my application.
    I am able to load values into the cache using the command cache api in the dyna cache.When i clear the cache for loading another set of values the cache gets cleared but still ,while loading the second set of values i get an out of memory error
    The dynacache is an distributed map
    i want to know whether the error is due to improper garbage collection
    on this map,if so help me to overcome this
    The JVM configuration are as follows
    Min 256mb
    Max 768mb
    I have a total of 1Gb ram

    Maybe your program's memory usage is rubbing against the upper limit, and something about the latest JVM caused it to break through.
    Try using the command line parameter -mx500m (for 500 megs or whatever amount you neeed)

Maybe you are looking for