Get size of file

My main.asc file does some logging within it using the file class.  That log file has gotten very big and I'm trying to implement a solution to back up the file when it gets too big.  Does anyone know how to check the size of a text file from within the main.asc file?

Hi,
You can use the File.length property to check the number of bytes in the file. See here for more information : http://help.adobe.com/en_US/FlashMediaServer/3.5_SS_ASD/WS5b3ccc516d4fbf351e63e3d11a11afc9 5e-7eac.html#WS5b3ccc516d4fbf351e63e3d11a11afc95e-7faf
Hope this helps.
Thanks,
Apurva

Similar Messages

  • Powershell - Get size of files listed in an array

    Hi there! I'm a newbie in powershell. As you can see, maybe my problem is kinda easy but i'm getting nuts over here.
    I got this object, that is an array
    PS C:\scripts\CleanScan> $gotFiles.GetType()
    IsPublic IsSerial Name                                     BaseType                            
    True     True     Object[]                                 System.Array  
    It came from an query gci
    $gotFiles = Get-ChildItem -Path $path -Recurse | Where-Object {$_.CreationTime -lt $limit}
    It gets the files in a directory older than $limit 
    Then my problem: Need to get the size in KB of each item in the array.
    Any help would be appreciated.

    GetType has it's value, but not for what you're trying to learn.  You want to use Get-Member to show the methods and properties you can use with your $GotFiles object, which actually consists of System.IO objects:
    $gotfiles | Get-Member
       TypeName: System.IO.DirectoryInfo
    Name                      MemberType     Definition
    Mode                      CodeProperty   System.String Mode{get=Mode;}
    Create                    Method         System.Void Create(System.Security.AccessControl.DirectorySecurity director...
    CreateObjRef              Method         System.Runtime.Remoting.ObjRef CreateObjRef(type requestedType)
    <lots of other stuff here>
    Parent                    Property       System.IO.DirectoryInfo Parent {get;}
    Root                      Property       System.IO.DirectoryInfo Root {get;}
    BaseName                  ScriptProperty System.Object BaseName {get=$this.Name;}
       TypeName: System.IO.FileInfo
    Name                      MemberType     Definition
    Mode                      CodeProperty   System.String Mode{get=Mode;}
    AppendText                Method         System.IO.StreamWriter AppendText()
    <still more stuff here>
    Length                    Property       System.Int64 Length {get;}
    Name                      Property       System.String Name {get;}
    The first section applies to directories because there's a directory in my path, so don't worry about that for now.  The second section has a Length property that might help:
    PS C:\temp\scratch> $gotfiles.length
    7
    Nope, that's just the number of files
    PS C:\temp\scratch> $gotfiles
        Directory: C:\temp\scratch
    Mode                LastWriteTime     Length Name
    d----         3/25/2014   3:13 PM            NTFSSecurity
    -a---         3/24/2014  12:27 PM         94 data.csv
    -a---         3/26/2014  12:48 PM         51 grp - Copy.csv
    -a---         3/27/2014   8:39 AM        104 grp.csv
    -a---         3/27/2014   8:28 AM         60 grp2.csv
    -a---         3/27/2014   8:34 AM        104 grp3.csv
    -a---         3/25/2014  12:23 PM      37003 obs.xml
    You can see the Length property right there in the output, in bytes
    PS C:\temp\scratch> $gotfiles | select name, length
    Name                                                        length
    NTFSSecurity
    data.csv                                                    94
    grp - Copy.csv                                              51
    grp.csv                                                     104
    grp2.csv                                                    60
    grp3.csv                                                    104
    obs.xml                                                     37003
    Then to make a report about this
    $gotfiles | select fullname, length | export-csv c:\filesizereport.csv -NoType
    Your code might look like this just to get the output:
    $gotFiles = Get-ChildItem -Path $path -Recurse | Where-Object {$_.CreationTime -lt $limit} | select fullname, @{name="Size in KB";expression={$_.length / 1024}}
    That last bit converts to KB. 
    I hope this post has helped!

  • I recently upgraded to Yosemite. Yesterday when I opened up the iPhoto (which I have it in my external drive due to the size of file) I get the message that it is not compatible with the new system(or something like that) and ask me to upgrade so I d

    I recently upgraded to Yosemite. Yesterday when I opened up the iPhoto (which I have it in my external drive due to the size of file) I get the message that it is not compatible with the new system(or something like that) and ask me to upgrade so I did. Then another message pops ups and asked for rebuilding the Thumbnails. So I clicked rebuild. Next it asked me to do one of three things(I can't remember all of them) so I chose the last one which is to download a photo to iPhoto. Now I only have that photo I downloaded in iPhoto file but not the rest of my pictures. The iPhoto library which is stored in my EHD shows it has 349GB but it only show one thumbnail of the last picture I downloaded after the rebuild process. What can I do to recover the rest of the file?
    Thanks for your help.
    George Kyaw
    <Email Edited by Host>

    I recently upgraded to Yosemite. Yesterday when I opened up the iPhoto (which I have it in my external drive due to the size of file) I get the message that it is not compatible with the new system(or something like that) and ask me to upgrade so I did. Then another message pops ups and asked for rebuilding the Thumbnails. So I clicked rebuild. Next it asked me to do one of three things(I can't remember all of them) so I chose the last one which is to download a photo to iPhoto. Now I only have that photo I downloaded in iPhoto file but not the rest of my pictures. The iPhoto library which is stored in my EHD shows it has 349GB but it only show one thumbnail of the last picture I downloaded after the rebuild process. What can I do to recover the rest of the file?
    Thanks for your help.
    George Kyaw
    <Email Edited by Host>

  • Getting adobe form file size at run time

    hi,
    ya i need the adobe form file size at run time. my requirement
    is to get xstring and file size of the adobe form. adobe form format is already in xstring format, but how to get the file size.

    Hi,
    try the following:
      DATA lv_file_content TYPE xstring.
      DATA lv_file_size    TYPE i.
      lv_file_size = XSTRLEN( lv_file_content ).
    This will give you the file size in Byte. For KB, just divide by 1024, and once more for MB.
    Kind regards
    Ole

  • When I move a RAW file from IPhoto to my desktop or Photoshop it changes to a jpeg and reduces in size. How can I get the Raw file across?

    When I move a RAW file from IPhoto on my macbook pro to desktop or Photoshop it changes to a jpeg and reduces in size. How can I get the Raw file to move across?

    I create separate folders based on the year and then the actual date of when I take images. You can make those folders anywhere on any hard drive that is connected to your Mac whether internal or external. I also use the Photoshop Photo Downloader that is included with Photoshop/Bridge and it will create the date folder so all I do is create a Year folder.
    Open Bridge or click on the Bridge icon in PS and in the File menu item in Bridge select "Get photos from Camera". It can be a camera connected to your Mac or a memory card from a camera. A window will open and you then select the camera or memory card. Set the location they will be downloaded to, just the folder and you can Browse to a folder that you created, then in the "Create  Subfolders drop down select what date stamp you want to use or or custom name or not to create subfolders at all.
    I've never cared for iPhoto one bit. I tried it but found it way to restrictive. It likes to have full control over how you interact with your images.

  • HOW CAN GET SIZE OF UPLAODED FILES UNDER IRECUIRMENT

    Dear All ,
    How can we get size for Irecuitiment .When users uploaded documents . I want to know the size of uploaded files.
    I try select * from IRC_DOCUEMTNS ..
    Any Idea please.
    Edited by: user12010537 on 21/03/2010 01:29 ص

    Hi Jason!
    I believe that should be all you need to do but a better place to ask would be the Parallels forums. Have a look here <http://forums.parallels.com/>.
    Hope this helps! bill
    1 GHz Powerbook G4   Mac OS X (10.4.8)  

  • How can i get also the files in the root directory and how can i for testing add items of IEnumerable FTPListDetail to List string ?

    What i get is only the directories and files that in other nodes. But i have also files on the root directory and i never
    get them. This is a screenshot of my program after i got the content of my ftp. I'm using treeView to display my ftp content:
    You can see two directories from the root but no files on the root it self. And in my ftp server host i have files in the root direcory.
    This is the method i'm using to get the directory listing:
    public IEnumerable<FTPListDetail> GetDirectoryListing(string rootUri)
    var CurrentRemoteDirectory = rootUri;
    var result = new StringBuilder();
    var request = GetWebRequest(WebRequestMethods.Ftp.ListDirectoryDetails, CurrentRemoteDirectory);
    using (var response = request.GetResponse())
    using (var reader = new StreamReader(response.GetResponseStream()))
    string line = reader.ReadLine();
    while (line != null)
    result.Append(line);
    result.Append("\n");
    line = reader.ReadLine();
    if (string.IsNullOrEmpty(result.ToString()))
    return new List<FTPListDetail>();
    result.Remove(result.ToString().LastIndexOf("\n"), 1);
    var results = result.ToString().Split('\n');
    string regex =
    @"^" + //# Start of line
    @"(?<dir>[\-ld])" + //# File size
    @"(?<permission>[\-rwx]{9})" + //# Whitespace \n
    @"\s+" + //# Whitespace \n
    @"(?<filecode>\d+)" +
    @"\s+" + //# Whitespace \n
    @"(?<owner>\w+)" +
    @"\s+" + //# Whitespace \n
    @"(?<group>\w+)" +
    @"\s+" + //# Whitespace \n
    @"(?<size>\d+)" +
    @"\s+" + //# Whitespace \n
    @"(?<month>\w{3})" + //# Month (3 letters) \n
    @"\s+" + //# Whitespace \n
    @"(?<day>\d{1,2})" + //# Day (1 or 2 digits) \n
    @"\s+" + //# Whitespace \n
    @"(?<timeyear>[\d:]{4,5})" + //# Time or year \n
    @"\s+" + //# Whitespace \n
    @"(?<filename>(.*))" + //# Filename \n
    @"$"; //# End of line
    var myresult = new List<FTPListDetail>();
    foreach (var parsed in results)
    var split = new Regex(regex)
    .Match(parsed);
    var dir = split.Groups["dir"].ToString();
    var permission = split.Groups["permission"].ToString();
    var filecode = split.Groups["filecode"].ToString();
    var owner = split.Groups["owner"].ToString();
    var group = split.Groups["group"].ToString();
    var filename = split.Groups["filename"].ToString();
    var size = split.Groups["size"].Length;
    myresult.Add(new FTPListDetail()
    Dir = dir,
    Filecode = filecode,
    Group = group,
    FullPath = CurrentRemoteDirectory + "/" + filename,
    Name = filename,
    Owner = owner,
    Permission = permission,
    return myresult;
    And then this method to loop over and listing :
    private int total_dirs;
    private int searched_until_now_dirs;
    private int max_percentage;
    private TreeNode directories_real_time;
    private string SummaryText;
    private TreeNode CreateDirectoryNode(string path, string name , int recursive_levl )
    var directoryNode = new TreeNode(name);
    var directoryListing = GetDirectoryListing(path);
    var directories = directoryListing.Where(d => d.IsDirectory);
    var files = directoryListing.Where(d => !d.IsDirectory);
    total_dirs += directories.Count<FTPListDetail>();
    searched_until_now_dirs++;
    int percentage = 0;
    foreach (var dir in directories)
    directoryNode.Nodes.Add(CreateDirectoryNode(dir.FullPath, dir.Name, recursive_levl+1));
    if (recursive_levl == 1)
    TreeNode temp_tn = (TreeNode)directoryNode.Clone();
    this.BeginInvoke(new MethodInvoker( delegate
    UpdateList(temp_tn);
    percentage = (searched_until_now_dirs * 100) / total_dirs;
    if (percentage > max_percentage)
    SummaryText = String.Format("Searched dirs {0} / Total dirs {1}", searched_until_now_dirs, total_dirs);
    max_percentage = percentage;
    backgroundWorker1.ReportProgress(percentage, SummaryText);
    percentage = (searched_until_now_dirs * 100) / total_dirs;
    if (percentage > max_percentage)
    SummaryText = String.Format("Searched dirs {0} / Total dirs {1}", searched_until_now_dirs, total_dirs);
    max_percentage = percentage;
    backgroundWorker1.ReportProgress(percentage, SummaryText);
    foreach (var file in files)
    TreeNode file_tree_node = new TreeNode(file.Name);
    file_tree_node.Tag = "file" ;
    directoryNode.Nodes.Add(file_tree_node);
    numberOfFiles.Add(file.FullPath);
    return directoryNode;
    Then updating the treeView:
    DateTime last_update;
    private void UpdateList(TreeNode tn_rt)
    TimeSpan ts = DateTime.Now - last_update;
    if (ts.TotalMilliseconds > 200)
    last_update = DateTime.Now;
    treeViewMS1.BeginUpdate();
    treeViewMS1.Nodes.Clear();
    treeViewMS1.Nodes.Add(tn_rt);
    ExpandToLevel(treeViewMS1.Nodes, 1);
    treeViewMS1.EndUpdate();
    And inside a backgroundworker do work how i'm using it:
    var root = Convert.ToString(e.Argument);
    var dirNode = CreateDirectoryNode(root, "root", 1);
    e.Result = dirNode;
    And last the FTPListDetail class:
    public class FTPListDetail
    public bool IsDirectory
    get
    return !string.IsNullOrWhiteSpace(Dir) && Dir.ToLower().Equals("d");
    internal string Dir { get; set; }
    public string Permission { get; set; }
    public string Filecode { get; set; }
    public string Owner { get; set; }
    public string Group { get; set; }
    public string Name { get; set; }
    public string FullPath { get; set; }
    Now the main problem is that when i list the files and directories and display them in the treeView it dosen't get/display
    the files in the root directory. Only in the sub nodes.
    I will see the files inside hello and stats but i need also to see the files in the root directory.
    1. How can i get and list/display the files of the root directory ?
    2. For the test i tried to add to a List<string> the items in var files to see if i get the root files at all.
       This is what i tried in the CreateDirectoryNode before it i added:
    private List<string> testfiles = new List<string>();
    Then after var files i did:
    testfiles.Add(files.ToList()
    But this is wrong. I just wanted to see in testfiles what items i'm getting in var files in the end of the process.
    Both var files and directoryListing are IEnumerable<FTPListDetail> type.
    The most important is to make the number 1 i mentioned and then to do number 2.

    Risa no.
    What i mean is this. This is a screenshot of my ftp server at my host(ipage.com).
    Now this is a screenshot of my program and you can see that in my program i have only the directories hello stats test but i don't have the files in the root: htaccess.config swp txt 1.txt 2.png....all this files i don't have it on my treeView.
    What i want it to be is that on my program on the treeView i will also display the files like in my ftp server.
    I see in my program only the directories and the files in the directories but i don't see the files on the root directory/node.
    I need it to be like in my ftp server i need to see in my program the htaccess 1.txt 2.png and so on.
    So what i wrote in my main question is that in the var files i see this files of the root directory i just don't know to add and display them in my treeView(my treeView is treeViewMS1).
    I know i checked in my program in the method CreateDirectoryNode i see in the first iteration of the recursive that var files contain this root files i just dont know how to add and display them in my treeView.
    On the next iterations when it does the recursive it's adding the directories hello stats test and the files in this directories but i need it to first add the root files.

  • How can I get Full PDF file in temporary Internet Files folder when a PDF is opened in IE?

    when a URL displaying a PDF file(http://www.google.com/Test.pdf) in internet explorer is done, the PDF file is opened in Microsoft internet explorer itself. But I observe one thing. i.e., If the PDF file is created with acrobat distiller the the PDF file opened on IE is fully obtained in Temporary Internet files, and if the PDF file is created with other than acrobat distiller(i.e., created using other PDF tools), then if the same file, then only a part of PDF(10KB-50KB) is obtained in Temporary internet files folder, and remaining is obtained by Acrxxxx.tmp in C:\Documents and Settings\Current UserName\Local Settings\temp folder. why this is happening?
    consider the total size of file as 1.5MB.
    In my PC, I had Adobe reader 8.1 and IE6.

    Yes, I was seeing the difference between PDFs that are linearized. I had unchecked that option, still I can't get the Full PDF in temporary Internet files folder.
    Are there any more settings to be changed.
    Why only for some files this is happening, What was the difference b/w the files which are fully obtained in temporary internet files folder and that are of not fully obtained.

  • How Can I get a HeapDump file in JRockit R26.3 or latter version

    I had tried "-Djrockit.oomdiagnostics.filename=oom.txt" arg,but it didn't work.
    how can i get a heapdump file in JRockit R26.3 or latter version ?
    I can only get the under infomation by using a ctrlhandler.act file.
    ======== BEGIN OF HEAPDIAGNOSTIC =========================
    Invoked from ctrlbreakhandler
    Total memory in system: 402075648 bytes
    Available physical memory in system: 54231040 bytes
    -Xmx (maximal heap size) is 314572800 bytes
    Heapsize: 314572800 bytes
    Free heap-memory: 0 bytes
    mmStartCompaction = 0x01DC0000, mmEndCompaction = 0x03080000
    3 GB mode was not used
    --------- Detailed Heap Statistics: ---------
    59.1% 110757k 1360491 +110757k [C
    17.0% 31916k 1361767 +31916k java/lang/String
    16.6% 31021k 1323579 +31021k java/util/HashMap$Entry
    4.7% 8766k 1909 +8766k [Ljava/util/HashMap$Entry;
    0.8% 1470k 2256 +1470k [B
    0.3% 491k 480 +491k [Lweblogic/servlet/utils/URLMatchMap$URLMatchNode;
    0.2% 342k 4871 +342k java/lang/Class
    0.2% 283k 3942 +283k [Ljava/lang/Object;
    0.1% 215k 1536 +215k [I
    0.1% 172k 7376 +172k java/util/Hashtable$Entry
    0.1% 157k 1552 +157k weblogic/management/tools/AttributeInfo
    0.0% 83k 2421 +83k [Ljava/lang/String;
    0.0% 83k 299 +83k [Ljava/util/Hashtable$Entry;
    0.0% 74k 1900 +74k java/util/HashMap
    0.0% 71k 1530 +71k java/lang/reflect/Method
    0.0% 62k 472 +62k weblogic/servlet/internal/ServletStubImpl
    0.0% 61k 461 +61k weblogic/management/runtime/ServletRuntimeMBean_Stub
    0.0% 55k 2383 +55k java/util/ArrayList
    0.0% 50k 3227 +50k java/lang/Integer
    0.0% 48k 1552 +48k weblogic/management/internal/DynamicMBeanImpl$XAttributeInfo
    0.0% 48k 1229 +48k java/util/WeakHashMap$Entry
    0.0% 43k 1840 +43k java/lang/ref/WeakReference
    0.0% 41k 528 +41k weblogic/rmi/internal/MethodDescriptor
    0.0% 38k 1768 +38k [Ljava/lang/Class;
    0.0% 38k 1637 +38k javax/management/modelmbean/DescriptorSupport$Pair
    0.0% 37k 805 +37k weblogic/management/WebLogicObjectName
    0.0% 34k 480 +34k [Lweblogic/servlet/utils/URLMatchMap$URLExtensionNode;
    0.0% 33k 532 +33k weblogic/management/tools/OperationInfo
    0.0% 32k 461 +32k weblogic/servlet/internal/ServletRuntimeMBeanImpl
    0.0% 30k 982 +30k java/lang/ref/SoftReference
    0.0% 26k 419 +26k weblogic/servlet/internal/dd/ServletDescriptor
    0.0% 20k 423 +20k [Lweblogic/utils/collections/ConcurrentHashMap$Entry;
    0.0% 19k 423 +19k weblogic/utils/collections/ConcurrentHashMap
    0.0% 19k 1222 +19k java/util/jar/Attributes$Name
    0.0% 18k 100 +18k [Ljava/lang/reflect/Method;
    0.0% 17k 447 +17k weblogic/servlet/utils/URLMatchMap$URLMatchNode
    0.0% 17k 12 +17k [J
    0.0% 16k 425 +16k weblogic/servlet/internal/dd/UIDescriptor
    0.0% 16k 684 +16k javax/management/MBeanParameterInfo
    0.0% 15k 480 +15k weblogic/servlet/utils/URLMatchMap
    0.0% 14k 471 +14k java/util/TreeMap$Entry
    0.0% 14k 453 +14k javax/management/modelmbean/DescriptorSupport
    0.0% 14k 638 +14k [Ljavax/management/MBeanParameterInfo;
    0.0% 13k 431 +13k weblogic/servlet/internal/dd/ServletMappingDescriptor
    0.0% 13k 852 +13k com/octetstring/vde/syntax/DirectoryString
    0.0% 13k 431 +13k [S
    0.0% 12k 553 +12k java/util/Vector
    0.0% 11k 302 +11k java/lang/Package
    0.0% 11k 369 +11k weblogic/xml/util/TernarySearchTree$Node
    0.0% 11k 727 +11k java/lang/Boolean
    0.0% 10k 266 +10k java/util/Hashtable
    0.0% 9k 182 +9k java/net/URL
    0.0% 9k 15 +9k [Ljava/util/WeakHashMap$Entry;
    0.0% 9k 386 +9k weblogic/rmi/internal/ClientMethodDescriptor
    0.0% 8k 158 +8k com/octetstring/vde/schema/AttributeType
    0.0% 8k 90 +8k weblogic/logging/WLServerLogRecord
    0.0% 8k 211 +8k weblogic/management/commo/CommoModelMBeanAttributeInfo
    0.0% 8k 2 +8k [Lcom/octetstring/vde/backend/standard/KeyPtr;
    0.0% 7k 322 +7k jrockit/vm/FCECache$FCE
    0.0% 7k 471 +7k weblogic/servlet/internal/URLMatchHelper
    0.0% 7k 58 +7k [Lweblogic/management/tools/AttributeInfo;
    0.0% 7k 58 +7k [Lweblogic/management/internal/DynamicMBeanImpl$XAttributeInfo;
    0.0% 6k 288 +6k weblogic/utils/collections/ConcurrentHashMap$Entry
    0.0% 6k 431 +6k java/util/HashMap$EntrySet
    0.0% 6k 428 +6k java/util/jar/Attributes
    0.0% 6k 156 +6k jrockit/memory/SoftCache$ValueCell
    0.0% 5k 379 +5k java/lang/Long
    0.0% 5k 751 +5k java/lang/Object
    0.0% 5k 77 +5k java/util/GregorianCalendar
    0.0% 5k 231 +5k java/util/LinkedList$Entry
    0.0% 5k 32 +5k weblogic/kernel/ExecuteThread
    0.0% 4k 25 +4k weblogic/rmi/internal/BasicRuntimeDescriptor
    0.0% 4k 111 +4k [Z
    0.0% 4k 204 +4k com/octetstring/vde/backend/standard/KeyPtr
    0.0% 4k 301 +4k com/bea/utils/misc/ProcessProperty
    0.0% 4k 49 +4k weblogic/apache/xerces/impl/dv/xs/XSSimpleTypeDecl
    0.0% 4k 73 +4k weblogic/jndi/internal/ApplicationNamingNode
    0.0% 4k 58 +4k weblogic/management/tools/Info
    0.0% 4k 290 +4k java/lang/Byte
    0.0% 4k 289 +4k java/lang/Short
    0.0% 4k 57 +4k [Ljava/lang/ThreadLocal$ThreadLocalMap$Entry;
    0.0% 4k 275 +4k java/lang/Character
    0.0% 4k 108 +4k java/math/BigInteger
    0.0% 4k 60 +4k weblogic/management/commo/ModelMBeanTypeMBean
    0.0% 4k 106 +4k java/util/TreeMap
    0.0% 4k 172 +4k java/text/EntryPair
    0.0% 3k 99 +3k weblogic/management/commo/CommoModelMBeanOperationInfo
    0.0% 3k 12 +3k weblogic/management/configuration/WebAppComponentMBean_Stub
    0.0% 3k 81 +3k sun/util/calendar/ZoneInfo
    0.0% 3k 9 +3k [Lweblogic/utils/collections/WeakConcurrentHashMap$Entry;
    0.0% 3k 95 +3k sun/misc/SoftCache$ValueCell
    0.0% 3k 93 +3k weblogic/management/commo/CommoModelMBeanInfoSupport
    0.0% 3k 115 +3k weblogic/servlet/internal/dd/ParameterDescriptor
    0.0% 3k 108 +3k javax/management/ObjectName
    0.0% 3k 104 +3k java/lang/StackTraceElement
    0.0% 3k 137 +3k java/io/ExpiringCache$Entry
    0.0% 3k 58 +3k [Lweblogic/management/tools/OperationInfo;
    0.0% 3k 7 +3k weblogic/servlet/internal/WebAppServletContext
    0.0% 3k 49 +3k jrockit/vm/ObjectMonitor
    0.0% 2k 191 +2k java/util/HashSet
    0.0% 2k 91 +2k java/util/ResourceBundle$LoaderReference
    0.0% 2k 121 +2k weblogic/management/commo/Commo$Pair
    0.0% 2k 4 +2k [Ljrockit/vm/FCECache$FCE;
    0.0% 2k 7 +2k [[Ljava/lang/String;
    0.0% 2k 30 +2k weblogic/management/internal/ConfigurationMBeanImpl
    0.0% 2k 107 +2k jrockit/reflect/VirtualNativeMethodInvoker
    0.0% 2k 12 +2k weblogic/management/configuration/ApplicationMBean_Stub
    0.0% 2k 73 +2k java/lang/ThreadLocal$ThreadLocalMap$Entry
    0.0% 2k 97 +2k java/util/LinkedList
    0.0% 2k 95 +2k weblogic/apache/xerces/util/SymbolHash$Entry
    0.0% 2k 56 +2k com/octetstring/vde/schema/ObjectClass
    0.0% 2k 93 +2k sun/security/util/ObjectIdentifier
    0.0% 2k 92 +2k java/util/ResourceBundle$ResourceCacheKey
    0.0% 2k 92 +2k java/util/regex/Pattern$Range
    0.0% 2k 91 +2k com/octetstring/vde/backend/standard/KeyEidList
    0.0% 2k 25 +2k [Lweblogic/management/commo/CommoModelMBeanAttributeInfo;
    0.0% 2k 12 +2k weblogic/management/mbeans/custom/Application
    0.0% 1k 25 +1k [Lweblogic/rmi/internal/MethodDescriptor;
    0.0% 1k 81 +1k weblogic/management/internal/Pair
    0.0% 1k 30 +1k com/bea/utils/misc/Process
    0.0% 1k 86 +1k [Lweblogic/management/WebLogicObjectName;
    0.0% 1k 58 +1k weblogic/management/internal/DynamicMBeanImpl$XInfo
    0.0% 1k 33 +1k sun/net/www/protocol/jar/URLJarFile
    0.0% 1k 38 +1k java/util/jar/JarFile
    0.0% 1k 74 +1k javax/management/NotificationBroadcasterSupport$Triple
    0.0% 1k 72 +1k com/sun/management/jmx/MBeanServerNotificationListener
    0.0% 1k 12 +1k weblogic/management/mbeans/custom/WebAppComponent
    0.0% 1k 72 +1k weblogic/management/internal/OnewayNotificationListenerImpl
    0.0% 1k 4 +1k [Lcom/sun/corba/se/internal/util/IdentityHashtableEntry;
    0.0% 1k 30 +1k [Lcom/bea/utils/misc/ProcessProperty;
    0.0% 1k 70 +1k java/util/Collections$SynchronizedList
    0.0% 1k 2 +1k weblogic/management/configuration/ServerMBean_Stub
    0.0% 1k 51 +1k weblogic/rmi/internal/PhantomRef
    0.0% 1k 3 +1k [Ljava/util/TimerTask;
    0.0% 1k 49 +1k weblogic/apache/xerces/dom/DeferredAttrImpl
    0.0% 1k 39 +1k weblogic/jndi/internal/WLEventContextImpl
    0.0% 1k 19 +1k weblogic/rmi/internal/BasicServerRef
    0.0% 1k 92 +1k jrockit/memory/AtomicIntImpl
    0.0% 1k 90 +1k weblogic/utils/DebugCategory
    0.0% 1k 59 +1k javax/management/loading/MLetContent
    0.0% 1k 16 +1k java/util/jar/JarFile$JarFileEntry
    0.0% 1k 87 +1k weblogic/utils/collections/Stack
    0.0% 1k 57 +1k java/lang/ThreadLocal$ThreadLocalMap
    0.0% 1k 13 +1k weblogic/jndi/internal/AdminRoleBasedDispatchServerRef
    0.0% 1k 13 +1k [Ljava/lang/Byte;
    0.0% 1k 41 +1k weblogic/xml/babel/scanner/Token
    0.0% 1k 25 +1k [Lweblogic/management/commo/CommoModelMBeanOperationInfo;
    0.0% 1k 53 +1k java/util/Collections$SynchronizedRandomAccessList
    0.0% 1k 52 +1k java/util/Date
    0.0% 1k 12 +1k java/text/DecimalFormat
    0.0% 1k 38 +1k sun/misc/URLClassPath$JarLoader
    0.0% 1k 6 +1k weblogic/management/runtime/WebAppComponentRuntimeMBean_Stub
    0.0% 1k 15 +1k [Lweblogic/apache/xerces/util/SymbolHash$Entry;
    0.0% 1k 48 +1k java/util/Locale
    0.0% 1k 14 +1k weblogic/common/internal/PeerInfo
    0.0% 1k 20 +1k sun/nio/cs/ext/GBK$Encoder
    0.0% 1k 44 +1k [Ljavax/management/NotificationBroadcasterSupport$Triple;
    0.0% 1k 23 +1k weblogic/jndi/internal/ServerNamingNode
    0.0% 1k 20 +1k [[B
    0.0% 1k 27 +1k java/lang/reflect/Constructor
    0.0% 1k 33 +1k java/util/zip/Inflater
    0.0% 1k 1 +1k [Ljava/lang/Character;
    0.0% 1k 1 +1k [Ljava/lang/Short;
    0.0% 1k 1 +1k [Ljava/lang/Integer;
    0.0% 1k 43 +1k sun/security/util/DerValue
    0.0% 1k 43 +1k sun/security/util/DerInputBuffer
    0.0% 1k 43 +1k java/security/AccessControlContext
    0.0% 0k 9 +0k java/lang/Thread
    0.0% 0k 21 +0k java/util/Properties
    0.0% 0k 31 +0k java/util/Collections$SynchronizedSortedMap
    0.0% 0k 31 +0k weblogic/servlet/utils/URLMatchMap$URLExtensionNode
    0.0% 0k 4 +0k weblogic/management/configuration/JMSQueueMBean_Stub
    0.0% 0k 11 +0k weblogic/kernel/ExecuteThreadManager
    0.0% 0k 6 +0k weblogic/j2ee/J2EEApplicationContainer
    0.0% 0k 20 +0k java/nio/HeapByteBuffer
    187413kB total ---
    --------- End of Detailed Heap Statistics ---
    ------------------- Printing heap ---------------------
    "o"/"p" = 1k normal/pinned objects
    "O"/"P" = 50k normal/pinned objects
    "."/"/" = <1k normal/pinned objects (fragmentation)
    " "/"_" = 1k/50k free space
    OOOOoooooooooooooooooooooooooooooooooooooooooooooo     0x00B3BD08
    ........oooooooooooooooooooooooooooooooooooooooooo     0x00B48058
    oooo....ooooooooooooooooooooo.....ooo..........OOO     0x00B6C278
    OOOOooooooooooooooooooooooo....ooooooooooooooooooo     0x00BB42D0
    oooooooooooooo.ooo..oooooooooooooooooooooooooooooo     0x00BC0620
    oooooooooooooo.Ooooooooooooooooooooooooooooooooooo     0x00BD88D8
    oo.....Ooooooooooooooooooooooooooooooooooooooooo..     0x00BF0B90
    ...oooooooooooooooooooooooooooooooooooooooooooo...     0x00BFCEE0
    ...ooooo.....................................Ooooo     0x00C15198
    oooooooooooooooooooooooooooooooooo................     0x00C214E8
    ......o........oooo.oooooo....oo.Ooooooooooooooooo     0x00C397A0
    ooooooooooooo.............................Oooooooo     0x00C51A58
    ooooooooooooooooooooooooooooooo. . ...oooooooooooo     0x00C5DDA8
    o..........................ooooooooooooooooooooooo     0x00C6A0F8
    oooooooooooooooooooooo........ooo..o...ooooooooooo     0x00C76448
    .......

    Hi all,
    We have HPROF functionality in our latest roadmap, so you will see that feature in our next major release called JRockit R28.
    I recommend, above from the MemLeak documentation suggested by Makiey, the following information on how to use JRockit tools.
    Performance Tuning & Profiling:
    http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_02.html
    Using JRockit tools:
    http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_03.html
    Diagnostics & Troubleshooting
    http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_04.html
    Best Regards,
    Tuva
    JRockit PM

  • How to generate a specific size txt file?

    Hey guys,
    I'm working with a system wich reads txt files. These files have to be 100kb of size.
    Is it possible to generate specific size txt files in abap? I'm trying to do this but i cant get exactly 100kb.
    Best regards

    [Character Streams|http://java.sun.com/docs/books/tutorial/essential/io/charstreams.html]

  • When I power up my Mac-Pro I only get  a flashing file folder with a ? inside the folder. I suspect my hard drive is maxed to capacity can anyone help me as to what I should do?

    When I power up my Mac-Pro I only get  a flashing file folder with a ? inside the folder. I suspect my hard drive is maxed to capacity can anyone help me as to what I should do?

    Whatever the problem is you no longer have a bootable system. You need to try reinstalling OS X.
    Reinstall Snow Leopard without erasing the drive
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Reinstall Snow Leopard
    If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    Download and install Mac OS X 10.6.8 Update Combo v1.1.
    Reinstalling Lion/Mountain Lion Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.

  • Getting empty csv file using servlet

    Hi
    i am working on reports for my web application and i used struts frame work.
    for my reports i want csv export, so for that i written servlet, once if i click generate button i am able to open popup window to save the generated csv file at my local system, but i am getting emplty csv file..
    nothing si ther ein that file forget abt data atleast my header fields.
    here is my servlet file..plz let me know where i am doing wrong..
    public class ReportServlet extends HttpServlet{
         public void doPost(HttpServletRequest req,HttpServletResponse res)
    throws ServletException,IOException
    PrintWriter out = res.getWriter();
    res.setContentType("text/csv");
    res.setHeader("Content-Disposition","attachment; filename=\"export.csv\"");
    out = res.getWriter();
    AdvDetailReportBean reportBean = null;
    ArrayList list =(ArrayList)req.getSession().getAttribute("advreportlist");
    System.out.println(" servlet report list size is"+list.size());
    String branchcode=(String)req.getSession().getAttribute("branchcode");
              String bName=(String)req.getSession().getAttribute("branchname");
              System.out.println(" servlet branch name"+bName);
              System.out.println(" servlet branch code"+branchcode);
    StringBuffer fw = new StringBuffer();
              fw.append("Branch Code");
              fw.append(',');
              fw.append("Branch Name");
              fw.append('\n');
              fw.append(branchcode);
              fw.append(',');
              fw.append(bName);
              fw.append('\n');                              
              fw.append('\n');
              fw.append("Customer Name");
         fw.append(',');
         fw.append("Constitution Code");
         fw.append(',');
         fw.append("Customer Status");
         fw.append(',');
         fw.append("Restructure Date");
         fw.append(',');
         fw.append("Total Provision");
         fw.append(',');
         fw.append("Limit Sanctioned");
         fw.append(',');
         fw.append("Principal");
         fw.append(',');
         fw.append("Balance");
         fw.append(',');
         fw.append("AccountID");
         fw.append(',');
         fw.append("Collateral SL No");
         fw.append(',');
         fw.append("Issue Date Of Collateral");
         fw.append(',');
         fw.append("MaturityDate Of Collateral");
         fw.append(',');
         fw.append("Subsidy");
         fw.append(',');
         fw.append("Guarantor SL No");
         fw.append(',');
         fw.append("Guarantor Rating Agency ");
         fw.append(',');
         fw.append("External Rating of Guarantor");
         fw.append(',');
         fw.append("Rating Expiry Date");
         fw.append(',');
         fw.append("Guarantee Amount");
         fw.append(',');
         fw.append('\n');
         for (Iterator it = list.iterator(); it.hasNext(); )
              reportBean = new AdvDetailReportBean();
              reportBean = (AdvDetailReportBean)it.next();
              fw.append(reportBean.getCustomername());
              fw.append(',');
              fw.append(reportBean.getConstitutionCode());
              fw.append(',');
              fw.append(reportBean.getCustomerStatus());
              fw.append(',');
              fw.append(reportBean.getRestructureDate());
         fw.append(',');
         fw.append(reportBean.getTotalProvision());
         fw.append(',');
         fw.append(reportBean.getLimitSanctioned());
         fw.append(',');
         fw.append(reportBean.getPrincipal());
         fw.append(',');
         fw.append(reportBean.getBalance());
         fw.append(',');
         fw.append(reportBean.getCurrentValue());
         fw.append(',');
         fw.append(reportBean.getAccountNumber());
         fw.append(',');
         fw.append(reportBean.getColCRMSecId());
         fw.append(',');
         fw.append(reportBean.getIssueDt());
         fw.append(',');
         fw.append(reportBean.getMarturityDt());
         fw.append(',');
         fw.append(reportBean.getUnAdjSubSidy());
         fw.append(',');
         fw.append(reportBean.getGuarantorFacilityId());
         fw.append(',');
         fw.append(reportBean.getRatingAgency());
         fw.append(',');
         fw.append(reportBean.getExternalRating());
         fw.append(',');
         fw.append(reportBean.getExpDtOfRating());
         fw.append(',');
         fw.append(reportBean.getGuaranteeAmt());
         fw.append(',');
         fw.append('\n');
    }

    You don't seem to be writing anything to the response at all. Yes, you create a StringBuffer and write lots of stuff to the StringBuffer but then you do nothing else with that buffer.

  • Exporting photos for UHDTV or Native 4K TV, what are the best settings ? (File: Quality File: Color Space, Image Sizing and resolution)   Or in other words; How can I get the smallest files but keep good quality for display on new UHDTV

    Exporting photos for UHDTV or Native 4K TV, what are the best settings ? (File: Quality File: Color Space, Image Sizing and resolution)   Or in other words; How can I get the smallest files but keep good quality for display on new UHDTV

    You're welcome, and thank you for the reply.
    2) Yesterday I made the subclips with the In-Out Points and Command-U, the benefit is that I've seen the clip before naming it. Now I'm using markers, it's benefit is that I can write comment and (the later) clip name at once, the drawback is that I have to view to the next shot's beginning before knowing what the shot contains.
    But now I found out that I can reconnect my clips independently to the format I converted the master clip to. I reconnected the media to the original AVI file and it worked, too! The more I work with, the more I'm sold on it... - although it doesn't seem to be able to read and use the date information within the DV AVI.
    1) Ok, I tried something similar within FCE. Just worked, but the file size still remains. Which codec settings should I use? Is the export to DV in MOV with a quality of 75% acceptable for both file size and quality? Or would be encoding as H.264 with best quality an option for archiving, knowing that I have to convert it back to DV if I (maybe) wan't to use it for editing later? Or anything else?
    Thank's in advance again,
    André

  • Get MUTLIPLE output files for SINGLE input file with multiple records

    Hi ,
    I have source xml file  which has multiple records in it and  I want to get multiple seperate  flat files for it.
    this is my source structure
    <root>
    <Header1 fld1=1234 fld2="name1" fld3='SAP1"
    fld4='000" fld5=0 fld6="sdn1"></header>...............no line items here
    <Header2 fld1=123 fld2="name" fld3='SAP"
    fld4='00" fld5=0 fld6="sdn" ><line fld7=value1 fld8=value2 fld9=value3 /line><line fld7=value4 fld8=value5 fld9=value6 /line></header>.....two line items here
    <Header3 fld1=123 fld2="name" fld3='SAP"
    fld4='00" fld5=0 fld6="sdn" ><line fld7=value7 fld8=value8 fld9=value9 /line></header>......one line item here
    Header4 fld1=12345 fld2="name2" fld3='SAP2"
    fld4='0006" fld5=01 fld6="sdn2"</header>.......no line items here
    </root>
    I am trying to get flat files as many time the <b>header</b> values occur that many target files should appear in the target.
    like
    file1:
    1234name1SAP10000~sdn1
    file2:
    123nameSAp000~sdn
    value1value2valu3
    valu4value5value6
    file3:
    123namesap000~sdn
    value7valu8value9
    file4:
    12345name2SAP2000601~SDN2
    here I have 4 headers so i need to get 4 output files ,similarly for 'n' headers I need to get 'n'  output flat files. the above mentioned source xml file is just one file,like that I might get somany sourc xml files which has similar structure in it.
    and also it is important to get the line items,if exists to the header, for the corresponding headers.
    how can I achieve this?do I need to use BPM or any mappings other than Graphical? 
    please suggest me.
    thank you.
    Babu
    sorry,output file structure changed
            Babu

    Babu,
    See the Mapping and the logic.
    Make sure your target message occurrence:http://www.flickr.com/photo_zoom.gne?id=1412748793&size=o
    Check out for source and target structure
    http://www.flickr.com/photo_zoom.gne?id=1412748803&size=o
    http://www.flickr.com/photo_zoom.gne?id=1412748809&size=o
    http://www.flickr.com/photo_zoom.gne?id=1412748815&size=o
    http://www.flickr.com/photo_zoom.gne?id=1412748825&size=o
    Results:http://www.flickr.com/photo_zoom.gne?id=1412748799&size=o
    Note:
    While creating Interface determination choose it as Enhanced/Extended
    The Receiver Content conversion - For field separator and line separator give 'nl' , coz we concatenated all of them using ~ in mapping.
    If you find any discrepancy in the above logic , please let me know.
    raj.

  • ALBPM 6.0 : The maximum size for file uploads has been exceeded.

    Hi,
    I use AquaLogic BPM Entreprise server to deploy my Process. When I try to publish a process on my server I get the following error:
    An unexpected error ocurred.
    The error's technical description is:
    "javax.servlet.jsp.JspException: null"
    Possible causes are:
    The maximum size for file uploads has been exceeded.
    If you are trying to publish an exported project you should publish it using the remote project option.
    If you are trying to upload the participant's photo you should choose a smaller one.
    An internal error has ocurred, please contact support attaching this page's source code.
    Has someone resolve it?
    Thank's.

    Hi,
    Sure you've figured this out by now, but when you get the "Maximum size for file uploads" error during publish consider:
    1. if your export project file is over 10mb, use "Remote Project" (instead of "Exported Project") as the publication source. That way when you select the remote project, you will point to ".fpr" directory of the project you are trying to publish.
    Most times your project is not on a network drive that the server has access to. If this is the case, upload the .exp file to the machine where the Process Administrator is running, then expand it in any directory (just unzip the file). Then, from the Process Administrator, use the option to publish a Remote Project by entering the path to the .fpr directory you just created when unzipping the project.
    2. Check to see if you have cataloged any jars and marked them as non-versionable. Most of the times the project size is big just because of the external jar files. So as a best practice, when you do a project export select the option "include only-versionable jars", that will get reduce the project size considerably (usually to Kb's). Of course you have to manually copy the Jar files to your Ext folder.
    hth,
    Dan

Maybe you are looking for