facebook

When open a big struts-config.xml, the IDE loses response

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #224121 Reply

    lff0305
    Member

    Myeclipse works fine in my test on some small struts-config.xml,
    but when I open a big struts-config.xml from a previous project,
    (it is big, more than 300KB), myeclipse takes 99% of the CPU and loses response. I have to terminate the process.

    #224128

    Brian Fernandes
    Moderator

    We have checked this version of ME 3.8.4 to work with large files, files ranging about 500KB with about 1000 actions and forwards.
    A file like this takes about 4 seconds to open on my 2Ghz Pentium M with 512MB RAM.

    Please note that layout is calculated the first time your file is opened, and it might take slightly longer; thereafter the data is persisted and subsequent opens will be faster.

    Please make sure Eclipse has enough RAM – this is important (add “-vmargs -Xmx256m” to the command line when starting eclipse) I noticed a significant difference in time if I started eclipse without this flag.

    If you are still unhappy, you can disable the design page altogether and use just the source editor – to do this, Edit your Project Properties (right click Project and edit the MyEclipse-Struts properties page to disable the designer). I would say this is rather extreme and it should not come to this.

    Please let us know how it turns out,
    Brian.

    #224129

    lff0305
    Member

    Hi, I tried 3.8.4 and it worked fine. But there is another problem:
    When I export the design to jpeg file, (right click in Design Form and choose Export as Jpeg, an error
    happend and says ‘Error exporting image. Reason: No more handles [GetLastError = 0x57]. Still, this error does not happen on small struts-config.xml files.

    My computer is Celeon 2G, 512MDDR, MS Windows 2000sp4.

    #224130

    Brian Fernandes
    Moderator

    Glad to hear it’s working now.

    Sorry, this is a known issue which we haven’t had the bandwidth to address in this release. The problem you see is becuase Windows cannot export images > 16MB (Bitmap memory). Though this is supposed to be an issue only in Win9x – I have noticed similar limitations on WinXP / 2000.

    If you really need the export – you might try using Linux, where it does work.
    We plan to have a more comprehensive set of export options soon (yes, cross platform), sorry for the inconvenience.

    Best,
    Brian.

    #225841

    jason poley
    Member

    I have 3.8.4 and i get the same error when i try to export a struts-config as jpeg.

    i have set memory to -vmargs -Xms600m -Xmx600m and have nothing else open (and 2 gb on box)

    and i get this same error.

    i have exported other files before with this release, but this one is larger.

    #225842

    Brian Fernandes
    Moderator

    Jason,

    The windows limitation on Bitmap size is irrespective of how much memory you give your JVM with the -Xm? switches AND the physical memory on your system.

    It’s 16MB. That’s it. I know it sucks, and we’re trying to address this one this time around.

    Sorry for the inconvenience,
    Brian.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: When open a big struts-config.xml, the IDE loses response

You must be logged in to post in the forum log in