JTextArea size limitation when used as a log

Hello,
I am writting an application where I have to log many messages.
I already solved (at least I hope so) somme troubles about being always at the end of the area with :
textArea.append(....);
textArea.setCaretPosition( textArea.getDocument().getLength() );I solve the thread pbs using invokeLater().
But now, last (but not least) issue : how to avoid the text area explosion in term of memory use? I would like to always "stock" the 1000 last messages for example.
Is there a solution (more elegant than cutting the lines by two when above a certain limit)?
Thanks for help.
Francois.

Very good idea. Thank you HolgerVogelsang !
I was beginning to think about that track...
As I am verylazy : does anybody have some snippet like that?
Thanks.
Francois

Similar Messages

  • Is there a Hard Drive Size Limitation when using Tiger?

    Im going to be setting up a backup server that users can copy their working files to, so Im going to be installing 2 300gb hard drives on a G4 running tiger. I just want to be sure that there is not some hard drive size limitation with tiger.
    Please let me know!!!

    Welcome to Apple Discussions!
    The size limitation is operating system independent. It has to do with the ATA bus on older machines which is discussed in more detail on this article:
    http://docs.info.apple.com/article.html?artnum=86178
    If you have a G4 tower that is older than the resolving of that limitation, you can add a PCI ATA card which supports larger hard drives, many of which are discussed in more detail on http://www.xlr8yourmac.com/
    I'm not sure about sharing external hard drives, though the size limitation does not apply to new external hard drives purchased since that limitation was resolved with newer ATA buses.

  • File size limitation when using BufferedWriter(FileWriter) on Linux

    I am using a Java application (console-based) on Linux RH8.0 with a Pentium III processor.
    I preprocess Javascript scripts that #include other Javascript scripts.
    (in fact these scripts are Javascript Server pages)
    I try putting all the result of the preprocess into one BIG temporary file
    created using File.createTempFile(prefix,".jsp");
    where prefix = "analyse"
    I write into this file by instanciating one 'new BufferedWriter(new FileWriter(...))'
    and then calling the write() and newLine() methods.
    But the temporary file seems to be limited whatever I do to 221184 bytes, which is too short for me.
    Could someone help me please ?

    Do you call flush() on the BufferedWriter when you've
    finished writing to it? I've had problems in the past
    with files being truncated/empty when I've neglected
    to do that. (Although admittedly, it doesn't sound all
    that likely to be the case for you...)
    How much output is missing? You say that the file size
    of 221184 is "too short", how much output were you
    expecting?
    Oh, and as you're running on a Linux-based OS, try
    checking to make sure that your file size isn't being
    limited - to check, run "ulimit -a" and look for the
    'file size' line. By default on Mandrake, it's
    unlimited, and I'd expect that to be the case for
    RedHat too, but you never know...Thanks, I just realized that I forgot to close() my temporary file before reading it, so it had not the opportunity to flush...
    Thanks a lot.
    Stephane

  • Is there a file size limitation when using Adobe Send?

    What is the largest file I can upload using Adobe Send?

    At this point, we have resolved the virtually all of the issues that users were encountering with uploading large files through Adobe Send.
    Although there is no 'hard' limit, you should be able to send files of 2GB and larger.

  • Report file size limitation when printing?

    Does anyone know of a file size limitation when printing a .NET run Crystal report? We run a browser app, which opens a new browser when a report is printed. That works fine. When we PRINT, the ActiveX print dialog box appears. If the report is large (> 40 pages or so) it crashes our entire application. It works ok if we export to PDF then print, but I am trying to get to the bottom of why it is crashing.

    Hello,
    What version of Cr and .NET?
    Does your printer have limited memory?
    Is it local printer?
    Have you tried installing the latest Drivers for it?
    What Browser are you using and have you tried any other?
    40 pages not much local memory so it shouldn't be a problem.
    Create a new Printer and select File rather than port or LPT as the destination to see if it's a physical printer or network issue.
    Try a different printer altogether also.
    Also refer to Rule of Engagement posting before submitting your question so you provide as much info first.
    Thank you
    Don

  • Is there a file size limitation to using this service?

    I am working on a large PDF file (26 mb) and I need to re-size the original and mess with the margins. I don't beleive there is an easy way to do this in Adobe Acrobat 6.0 Pro. It sounds like I have to convert the file back to a Word document, do the adjustments there and then produce a new PDF. I have two questions:
    Is there a file size limitation to using this service?
    Will a PDF to Word doc. conversion mantain the format of the orginal PDF?
    Thanks
    Tim

    Good day Tim,
    There is a 100MB file size limitation for submitting files to the ExportPDF service.  As for the quality of the conversion, from our FAQ entitled Will Adobe ExportPDF convert both text and formatting information?:
    Adobe ExportPDF is capable of exporting high quality information, but the quality of your Word or Excel document depends on the quality of the PDF file you start with. For instance, if your PDF file was originally authored in Microsoft Word or Excel and converted to PDF using the PDFMaker functionality of Adobe Acrobat®, your PDF file contains a rich set of information that can be captured by Adobe ExportPDF. This includes relative positioning of tables, images, and even multi-column text, as well as page, paragraph, and font attributes.
    If your PDF file was originally authored using simpler PDF generation methods, such as “print to PDF” or “scan to PDF” options, Adobe ExportPDF will convert any recognizable text and then use sophisticated conversion intelligence to preserve as much of the page layout as possible.
    Please let us know if you have any other questions!
    Kind regards,
    David

  • GenPrint spitting out Thumbnail size PDFs when using AddMultiPageBitmap

    Hello,
    I have an odd situation occurring that has me a little stumped, wondering if anybody has any insight. We setup a project to run in one of our test environments. The project uses the AddMultiPageBitmap rule to pull in one or more PDF's from the Linux server it's running on for some transactions. What's odd is that when the GenPrint shell script is executed by the scheduler (we use Zena), Genprint runs fine, and our resulting Metacode output contains the expected PDF's, but they're very small (we've been calling it 'thumbnail' size).  When I run the GenPrint shell script using a super-user ID (the one that was used to install Documaker on the server, as well as defined the majority of the folder structure on the server that our project uses), then the PDF's are normal/full size. It doesn't matter 'who' ran GenData, the NAFILE is the same.
    Since the only difference is where the scripts are located that are being run (the scheduled one is in an "installed to" location, whereas when I run it using the super-user ID, I'm just running it from a 'scripts' folder that I copied to the same parent folder that the Documaker project's subfolders are in), and the ID itself that's running it, that seems to imply it's authorization related, but there's nothing different in the log files, nothing in the output listing, errfile, etc. I've wondered if there's a Debug option I could try turning on to see if that spits out anything that would help, but not sure which rule to use/turn on.
    Has anybody ever run into something like this before, or have a better grasp on what could be happening and where I should look next?
    We're running 11.5, patch 4, and as I mentioned, we're running it on the Linux platform, creating Metacode output.
    Thanks,
    Gregg

    Hi Gregg,
    Everything you've mentioned seems to indicate that it's related to permissions. Is it possible that you could change the permissions on the PDF file (something like chmod 777) and see if this makes a difference in the resulting output? I've not heard of something like this before.
    -Andy

  • Why are Image Export Sizes Doubled when using Save vs. SaveForWeb&Devices?

    Hi Folks
    Maybe I'm missing something here ...
    I have 2 versions of an action I use to batch process images. One uses the Save As dialogue and the other uses SaveForWeb&Devices. However, the image sizes created using the latter are about 50% smaller than those created with the former. The two actions differ only in the Save step - I duplicated the original and swapped the save step in the action.
    Is SaveForWeb&Devices usign a more efficient optimisation algorithm or am I missing something?
    The reason for using the Save As dialog is that Batch Processing is able to override the save location, whereas I had trouble overriding save location in a batch process which used an Action that Saved using SaveForWeb&Devices.
    Cheers
    Richard
    P.S. I also find this size doubling takes place when using the Image Processing script supplied with PS. I'm on PS5 on OSX10.6.8.

    SfW throws out redundant custom data, when the normal JPEG save does not. Using the normal save e.g. also retains clipping paths (10 years ago people used that al lthe time for print stuff) and of course also more info on color management, user metadata and what have you. Therfe may bne more specific optimizations in SfW, but that's something Mr. Cox can probably answer better...
    Mylenium

  • Is there a file size limit when using Read From Spreadsheet File?

    I'm trying to read in a large file, about 52mb, 525600 lines with 27 fileds in each line using "Read From SpreadsheetFile.vi". I then search the 2D array for -999, which represents bad/no data in that field and total the number of fields with -999 in it. This all works on 3 months worth of data. The program is giving me an out of memory error and stopping in the case where the read takes place on the large one year file. So my question is does the Read from Spreadsheet file have size limitations? Is there a better way to do this? Thanks in advance for the help.
    ssmith
    Solved!
    Go to Solution.

    Camerond--
           Thanks for the help. I recreated the VI you posted and unfortunately it doesnt work. It looks like the index array vi is only looking at the zero index and not the other 26 fields in each row. This would probably require a FOR LOOP to go through each field index. This is what I have and it works on a smaller version of the file. For some reason LV is using up bucket loads of memory to run this smaller file and crashes running the 60MB file. I've attached one of my vi's to solve this problem and the smaller data set. You'll see in the beginning that I trim some columns and rows to leave just the data I want to scan. Thanks again for the help.
        I just tried send 3 months worth of one minute data and it failed. So here is a really small version, 20 minutes worth of data. Does anyone see anything that would cause memory usage issues here?
    ssmith
    Attachments:
    Find-999NoLoops.vi ‏17 KB
    TEST2MET.txt ‏3 KB

  • Line size changes when using Rotate??

    Hello:                                                                           Level: Newbie OS: Windows 7 64bit
    So, I have been using the Line tool and then Grouping two Lines and then using the Object > Transform > Rotate
    The lines I draw are 0px wide and 22px high but when I Rotate them around the circle the Line sizes change ... ??
    Say the two lines are Grouped and the first set is 276px the next set becomes say 276.346 and then 275.582 and 198.682 and so on ...
    I have gone into the Tranform pallette to see if there is something I should be checking but it doesn't seem as though I am missing anything to the best of my (limited) knowledge.
    I have also tried the manual and looked for something like: "why line size would change on rotate" and I've looked under Transform and Rotate but I haven't had any luck.
    As always ... Thank you so much for your time

    OMG! LMAO!! I am literally laughing my _ _ _ off!!
    Sooo Sorry, did i forget to mention that I am dyslexic?? wasn't trying to be cunning ... lol
    Also, and ... Pleeeeease Forgive Me for this ... I didn't take into account that you would actually check the 276.346 ... etc. in my first post ... thought I had mentioned those were just "examples" ... seems It didn't make it from my head to the keyboard to the post
    I just pulled those number outta that thing I'm laughing off ... and now between the tears of laughter I am feeling Super Bad for not considering that those numbers would matter all that much ... I swear ... I'm not usually this numb!
    So, I spoke to someone at Adobe today and it seems as though I am not Aligning things correctly.
    I'm just getting back home again and I'm going to give the tut a go again.
    I'm using CS6 .... have I also mentioned this is my first Illustrator attempt?
    Below is the compass I made in two days ... it's missing the last two steps. I'm also stuck on that dang "Glossy" thing but hey, that's an other post for me to lead you all astray on
    My head has been a bit in the clouds this past week ... so,  I am sorry for that and certainly do Very Much Appreciate Your Amazing Vigilance w/All My Heart!!
    I just cannot give up. I'm not a quitter. I believe I ought to brush up on my (p. poor) math skills as well as sitting down to read the manual front and back before an other tut attempt.
    Thank you again for Everything!! I'll be back to let you know how it goes.
    The inner circles and increments don't look right to me

  • Huge file size  grow when using external editor

    Hello,
    I want to use an external editor such as Photoshop or Pixelmator. When I set one of the applications to be the external editor everytime I open a file for editing a version is created with a file size of approx. 57 Mb.
    Any ideas what is going on here?

    Lt, it's also worth seeing if you have the setting for the TIFF so that it best suits you.  If you don't require a 16 bit TIFF make sure the it's set to create an 8 bit TIFF instead.  The 57 meg size sounds like a 16 bit image.  An 8 bit one will be half that
    .  Before Aperture I used to stay16 bit right up until I passed the image off to whoever it was going to, at which point I'd make them an 8 bit version because that would usually be what they wanted.  But now so much of whatever advantage that brought me (exposure and tonal changes, especially in solid areas) is being done in Aperture, even before creating a TIFF, so it can be argued that for many people the advantage of exporting 16 bit to the external editor isn't gaining them that much.  If it's going to a consumer printer (that is not 16 bit aware) even more so.   16 bit is better, but if size is an issue and Aperture is doing 90% of the global tweaking, I don't think sending the editor an 8 bit TIFF is a crime  :  )  

  • Storage Spaces: SSD tier size incorrect when using EnclosureAware option in a pool

    Hi folks,
    We're about to deploy Storage Spaces in our test environment, but we encountered an issue while configuring Enclosure Awareness on Storage Pools.
    When we create a Storage Pool (over 3 JBOD's) and set the option EnclosureAwarenessDefault to $True, the SSD tier size automatically decreases / shrinks to 12GB (sometimes 18GB sometimes 0GB).
    Without EnclosureAwarenessDefault, we get 1110 GB of SSD size available.
    The same behavior is seen when enabling -EnclosureAwareness on Storage Space (virtual disk) level.
    A summary of our configuration:
    3 SOFS connected twice to each JBOD (LSI 9207-8e - SES 3 ) = HCL certified
    3 JBOD arrays (Quanta M4600H) (Firmware Management SCSI Enclosure Service (SES-2) = HCL certified
    Each JBOD array has 16 HDD and 4 SSD.
    SOFS are fully patched, including KB 2913766
    Below 2 screenshots:
    EnclosureAwareDefault = $True
    https://onedrive.live.com/redir?resid=BB5A32452CA3BD6C%21436
    EnclosureAwareDefault = $False
    https://onedrive.live.com/redir?resid=BB5A32452CA3BD6C%21437

    Hi Partner,
    Thank you for your detailed information and sorry for the delayed response.
    After consulting with some senior engineers, please check the following:
    Server manager does not let you set the column count of the space, which means that it is automatically selecting 6 as the column count, as there are 12 SSDs.  Unfortunately, the column count must be less than the number of disks of each type in each
    enclosure (limited by 4 SSDs), otherwise space creation will fail, and estimation will produce a small, somewhat random number.  If you create a space through powershell and specify –NumberOfColumns 4 then it should work.
    Hopefully it helps.
    Feel free to let me know if you have any question. Thank your for your time.
    Best Regards,
    Sophia Sun
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Limitations when using jsvc daemon?

    I found out about and started using JMC yesterday and am using it to gain insights into a Java program that runs via the jsvc daemon on Linux (Ubuntu and RHEL).
    Most everything in JMC is working, except 1) the MBeans browser, which is completely empty, and 2) method profiling/sampling, which never produces any events even when enabled via the Flight Recorder template.  Both of these features work fine when I use JMC against JMC itself or another Java program not running via jsvc.
    Are these two features not available for Java programs running via jsvc in general, or is there something specific to the application I'm trying to debug?
    The application is from a 3rd party and so far I've not been able to figure out how to run it independently of jsvc so I can see if that solves the problem.
    thx,
    Chris
    P.S. JMC is exactly the kind of tool I've been looking for to diagnose and troubleshoot production Java-based services -- thanks for making it available!

    I guess that log message comes from
    http://commons.apache.org/proper/commons-daemon/xref/org/apache/commons/daemon/support/DaemonLoader.html
    Maybe this indicates that the jvm attach framework on Linux will not work that well, and if you're connecting locally with JMC to your app, this might be a problem.
    If you did not do so already, it might help if you start the jsvc daemon with some extra jvm flags:
    -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=7091
    and then in JMC create a custom connection to localhost:7091
    If this a system you want secure, you should of course enable ssl and/or authentication...

  • Does the quadrangle's amount be limited when using the IndexedQuadArray?

    Dear all,
    I use IndexedQuadArray to describe a 3d's surface which is composed of thousands of quadrangle. When the quadrangle's amount is larger than 60000,the JVM is crashed with the following information:
    +++++++++++++++++++++++
    An unexpected error has been detected by Java Runtime Environment:
    SIGSEGV(0xb) at pc=0x000000000dbefebb, ...
    Java VM: Java HotSpot(TM) 64-Bit SErver VM(11.3-b02 mixed mode linux-amd64)
    Problematic frame:
    C [i965_dri.so + 0x31ebb]
    The crash happened outside the Java Virtual Machine in native code.
    See Problem ...
    ++++++++++++++++++++++++++++++++++
    But when the amount is not larger then 60000, everything is ok.
    My os is: 2.6.26.8-57.fc8, Redhat fedora 8, x86_64
    J2SE : 1.6.0_13-b03
    Java3D: 1.5.2
    thanks

    That's a computer problem. Your computer can't handle an amount larger than 60000. I had a similar problem.

  • Publisher 2013 size limits when saving as JPG

    Hi,
    Since moving our users to Office 2013 a number of complained that saving of .pub files as JPG results in a 0Kb file.  Having performed some testing this only seems to be the case with .pub files which have large dimensions (e.g. banners, large posters).
     This is easy to reproduce however I am unable to find any reference to these limits online.
    Anyone else seen this issue or found the detail I need to satisfy my customers?
    Thanks

    Hi,
    When we save the publication as a .jpg file, we need to change the resolution.
    FILE -> Save As -> Browse to a location -> select *.jpg in the "Save as type" box, then click the "Change" button under "Resolution", we will see the image below:
    Select Web (96 dpi) and the 0kb issue should be gone.
    Regards,
    Melon Chen
    Forum
    Support
    Come
    back and mark the replies as answers if they help and unmark them if they provide no help.
    If
    you have any feedback on our support, please click here
    Thanks, yes we have tried that but that is a workaround rather than a solution.  At least you have reproduced the problem so we know it isn't a local issue. This would be no good if you actually need the file in higher quality.

Maybe you are looking for

  • Content Server: External NAS, DB without MS Domain?

    Is it possible to configure Content Server for using external NAS and DB without put Content Server in a MS Domain?

  • How to subtract a day from the presentation variable @{system.currentTime}

    Hello, How can subtract a day from the presentation variable - @{system.currentTime} I use the above as a title in the report. However I want to subtract a day from the above variable. How can I accomplish it? Thanks.

  • Unable to send to BB via bluetooth......

    Hi, As a new BB user I'm trying to get to grips with how it works.............I've been trying to send pics,mps etc to my BB via bluetooth but keep hitting a brick wall.  I've read up on a few posts on what to do but I've tried everything suggested b

  • Forms personalization error

    Hello all, I am trying to personalize the Transact Move Orders form in Inventory. Business need is to make the button - "*View/Update allocation*" not displayed in the form. For this, the "*DISPLAYED*" property of this item (*TOLINES_CONTROL.OPEN*) "

  • Atan2 equivalent in a Formula Node?

    Does anyone have an atan2 (2-input inverse arctangent) equivalent for use in a Formula Node? I was surprised to see that such a common function wasn't supported in Formula Nodes. Without it, my easily readable Formula Node equations get junked and be