facebook

struts-config.xml open slow in 3.8.3

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    IceCraft
    Member

    My project’s struts-config.xml file is very larger, it more than 2000 lines.
    When I open it, that need more than 6 minutes.
    I have test this problem in 4 computers. They all have this problem.
    There is not this problem In myeclipse3.8.2 .
    Please tell me why and how to solve it. Thank you very much.

    PC:
    CPU: P4 2.4G
    Memery: 512M
    OS: Windows XP sp2
    IDE: eclipse 3.0.1
    MyEclipse: 3.8.3

    #221121

    Brian Fernandes
    Moderator

    IceCraft,

    There were a couple of major changes in the latest Struts Plugin, that could be causing the problem you are experiencing. I can account for the much enhanced editor taking a little longer – but 6 minutes is far too long.
    To help us understand exactly what is going wrong, could you mail your config file (only struts-config.xml) to support@genuitec.com ATTN: Brian ?
    This will allow me to determine the cause of the problem immediately.
    I understand that you might not be in a position to mail me your config – so can you give me the following details as well ?

    1) Does it take 6 minutes the first time the config is opened and take less time on subsequent opens ?
    By first time I mean the time when you get a notice saying that an mex file will be created. (Try deleing the .struts-config.mex file [please backup first :)] and see.)

    2) Does it take significant time to open in the standard xml editor ?

    3) Can you estimate the number of nodes in your diagram for me (nodes = actions, pages, forwards etc – any rectangular box in the diagram to put it graphically)
    Also estimate the number of connection lines in your diagram

    4) After the graph does load up – is the performance good (when moving nodes) or is it sluggish ?

    5) Is the Struts Flow Overview view open ? I doubt this is the cause – but if it is open, please close it before opening your diagram.

    Thanks,
    Brian.

    #221258

    IceCraft
    Member

    Brian,
    Thanks for your answer. I am sorry, I can’t mail my struts-config.xml file to you, beacase my company don’t permit that.
    I will answer your question:
    1)After I strart up eclipse, I use Myeclipse Struts Editor to open struts-config.xml, it spend 5minutes and 44 seconds. Close it and open it again, it spend 5 minutes and 6 seconds.
    2)In the standard xml editor, it spend 6 seconds.
    3)When I click design tabel in myeclipse struts editor, it take a error:
    Unable to access struts flow view due to XML and Struts validation errors detected in source. Please make corrections and try again.
    And, I have never use the myeclipse’s struts graphically editor, general, I create a actionform or action use myeclipse, then it will help me to write config file to struts-config.xml. I use struts console plugin to edit struts-config.xml.
    Now, when I create a actionform or action use myeclipse, it will auto open struts-config.xml by myeclipse struts editor. It spend more time. How can I forbid myeclipse auto open it or use other editor to open it?
    In my struts-config.xml, there are about 400 form-bean and 400 action, they are one to one. Each action hold one to five forward.
    4)Because that error, I can’t use graph.
    5)The struts flow overview view is not open.

    I have some advices:
    1) Please allow User forbid the myeclipse struts editor to auto open the struts-config.xml when creating action or actionform by myeclipse.
    2) Please allow user set other struts editor to default struts editor so that it will be used to auto open struts-config.xml when creating action or actionform by myeclipse.
    3) In myeclipse, add struts console plugin and spring ide plugin.

    Thanks,
    IceCraft.

    #221263

    Scott Anderson
    Participant

    IceCraft,

    We understand the sensitivity of sending us you actual struts-config.xml file for testing. However, would it be permitted if you performed global search/replaces on the package names, action names, etc so that they were meaningless? What we really need in order to test is layout in your file. What the beans / packages / jsp’s are called isn’t important to us, as long as each unique string is replaced with another unique string throughout the file so it remains consistent. Would that be permitted?

    #221264

    IceCraft
    Member

    Well, I make a copy of struts-config.xml which be modified and mail it to support@genuitec.com.

    #221267

    Scott Anderson
    Participant

    We got it and brian will look into it quickly. Thanks again for the help running this down.

    #221329

    Brian Fernandes
    Moderator

    IceCraft,

    Thanks again for the config and all the info.

    My machine has an almost identical config as compared to yours.

    However, when I opened the file for the first time ever, it took only 20 seconds. It takes about 5 seconds to switch to the design tab.
    Subsequently closing and opening the file takes 40-50 seconds and about 20 seconds for a swtich…

    I agree that though these are far from the 6 minutes you report – they are not ideal in themselves and we certainly don’t expect you to wait 40 or even 20 seconds before your graph opens. I am working on isolating the problem and fixing it at this moment. I cannot think of why it is taking 6 minutes on your computers.

    Please note that you are unable to see the graph in the design tab becuase your source contains a duplicate form bean – which results in an invalid configuration. The source editor will mark this out for you. If you remove the error, you will be able to get into design mode.

    As a temporary fix – you can delete the .struts-config.mex file which is created in the same directory as your struts-config.xml BEFORE opening it. Unfortunately, this file will be created each time you open the config file in the config editor and you may have to delete it repeatedly. This file keeps track of your node locations and and connections and pages that you might create which are not part of the struts-config.xml. If you do not need this sort of persistance, then you can saftely delete the .mex file (please backup your initial .mex file)

    Please allow me to suggest a design level fix. I had a look at your graph and saying it is large is an understatement. You have roughly 500 actions, 500 pages what seems like a 1000 – 1500 connections beween them. Perhaps you could break it up into several struts config modules ? That way it will be easier for you to manage as well ?

    I’m sorry but the Wizards will not work outside the MyEclipse Struts Editor and they will invoke the editor if it isn’t already open.

    We will keep your other suggestions in mind.

    Thank you for your support and continued patience,
    Brian.

    #221376

    IceCraft
    Member

    Brian,
    Thanks for all something which you do.
    Because we use struts for the first time, so I have not wrote config in several struts config modules. In next project, I will do that.
    But I have not tell a lie in that time. Before I answer the five question, I measure the time of open the file by a stopwatch. So, the time is true. In another computer, it spend more time.
    At present, we create action or form like this:
    First, open the struts-config.xml by xml editor. Then, create action and form by wizards. But config will not auto write into struts-config.xml. I have to manual write them.
    I am expecting the next version of myeclipse. I will support you all the same.
    IceCraft

    #221458

    Brian Fernandes
    Moderator

    hey Ice,

    I did not imply that you were lying at all – please don’t get me wrong. I’ve been with computers long enough to realize that there could be a whole lot of reasons causing the increased slow start on your machines; just that none of them are too obvious.

    I have isolated the issue behind the slow start and am fixing it right now. Stay tuned for further updates.

    Brian.

    #222035

    palvim
    Member

    Hi!

    I have the same problem:

    I’m using a Pentium IV with Windows 2000 Professional and 1GB RAM giving 512MB to Eclipse 3.01 and MyEclipse 3.8.3.

    When I try to open struts-config.xml it opens quickly but my Eclipse keeps frozen…it takes about 5 minutes using 100% of the CPU until I can be able to work again.

    The same occurs when I try to paste comments in my (ex: Tiles) XML files (the – transient – errors appear in red but Eclipse stop answer for a long time).

    My current solution is avoid MyEclipse for a while (When I use just Eclipse and others XML editors everything goes right).

    Is there any memory requirements for MyEclipse that requires more than 500MB RAM?

    I will also sending my struts-config.xml to that email…

    Paulo Alvim

    #222037

    Scott Anderson
    Participant

    Paulo,

    Thanks for your patience and the example file. We will use it to test the fix to the struts flow diagram code that we’re readying for quickfix 1. In the meantime the workaround is to use Open With… > MyEclipse XML Editor. This will allow full source editing but won’t try to display the flow diagram.

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: struts-config.xml open slow in 3.8.3

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