We are having problem when in Developer designer mode.
When we are in Servoy developer designer mode after switching between several forms the developer gets slow and slower until it hangs, then I have to kill the Servoy task from the Windows Task Manager then start the developer again.
I checked the .log file nothing was there, but I could see in the following error in servoy_developer.bat:
Starting Servoy from D:\Servoy08-24-05-R2
Servoy R2 2.2 build-328 on Windows XP using Java 1.5.0_04
Looking for servoy.properties on C:\Documents and Settings\abk\servoy.properties
Loading servoy.properties from D:\Servoy08-24-05-R2\servoy.properties
Loading - Done
Using RMI registry on port 1099
Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Starting service Tomcat-Apache
Apache Tomcat/4.0.1
Aug 23, 2005 10:55:23 AM net.sf.hibernate.dialect.Dialect
INFO: Using dialect: net.sf.hibernate.dialect.SQLServerDialect
Aug 23, 2005 10:55:35 AM net.sf.hibernate.dialect.Dialect
INFO: Using dialect: net.sf.hibernate.dialect.SQLServerDialect
Aug 23, 2005 10:55:35 AM net.sf.hibernate.dialect.Dialect
INFO: Using dialect: net.sf.hibernate.dialect.SQLServerDialect
Exception in thread “AWT-EventQueue-0” java.lang.OutOfMemoryError: Java heap space
Exception in thread “MessageScheduler” java.lang.OutOfMemoryError: Java heap space
java.lang.reflect.InvocationTargetException
at sun.rmi.transport.tcp.TCPTransport.continueAfterAcceptFailure(Unknown So
at sun.rmi.transport.tcp.TCPTransport.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.OutOfMemoryError: Java heap space
Exception in thread “AWT-EventQueue-0” java.lang.OutOfMemoryError: Java heap space
Servoy Developer is running on Windows XP with 1 GHz CPU and 1 Gig of RAM
Abrahim, I wonder, after reading this thread and also the Out Of Memory problem you were having when trying to export your solution … have you tried swapping out the RAM in that computer? Has the RAM ever been tested? Is it possible the RAM is just bad? (It does happen, even in brand-new computers, trust me.)
If you use this technique: either stop usign it, or ask Servoy to fix the leak.
If you are not using the technique, something else would be causing the memory leak. MemLeaks are difficult to find if you do not have reproducable testcases. Does your problem occur with any solution you open, or just specific ones?
Using any specific plugin’s not delivered standard with Servoy?
To locate the issue, try eliminating every possible source: Remove special plugin’s if you use them, make a very simple solution and see if you still have this situation. If not, it must be something in either the plugins or the solution. Start adding the plugins etc, etc etc
If you located the issue, then depending on where it is, it up to you to fix it, Servoy to fix it or the plugin builder to fix it.
I have observed this behaviour when an error occurs (especially in calcs). Once you have an error, developer gets slower and slower and CPU load goes up to 100%. Try to run with a stack trace and make sure there is no errors…
A fully functional solution can still hold errors. Believe me, it is from experience that I say this.
There have been issues with developer getting slow due to memory issues but I haven’t seen them for a long time. Not even after working in the developer for more than a normal working day.
I noticed that there is one error where you try to put a varchar value into an integer field. This normally points to a combobox or typeahead field that is set wrong or a textfield that has a valuelist that shouldn’t be there.
you also need to correct 28 calculations/aggregations (if you haven’t already done so).
Even when you suspect that these errors are not the cause of your issue, when they are solved they can be deducted from the number of possible causes.
Java on Windows appears to be quite forgiving and will run fine even though it’s logging errors. Look out for the orange exclamation mark at bottom left of Status bar. See also this thread. http://www.forum.servoy.com/viewtopic.php?t=4624
OSX/Java is stricter and I found solutions would hang on OSX even though they ran OK on XP.
I notice that while in Servoy Developer designer mode, if I copy and paste any object, the copying and pasting action will cause Servoy Developer to hang sooner.
Have you tried watching the CPU/Page File usage on Task Manager while you do the copy/paste - and also other tasks.
I’ve just done about ten pastes of a reasonably complex layout with multiple tabs, buttons, fields etc and all I saw was very short spikes up to about 40-60% CPU then back to nil, and Page File go up from 640mb to 680mb then stay.
Regards
Graham Greensall
Worxinfo Ltd
Dell Latitude D610 Pentium M 2GB with 1GB RAM.
Servoy Developer
Version R2 2.2-build 328
Java version 1.4.2_08-b03 (Windows XP)
The cpu spikes for a second and gets back to normal.
But in Servoy console I see:
Exception in thread “AWT-EventQueue-0” java.lang.OutOfMemoryError: Java heap space.
akalehzan:
It is a very unhappy for us to see Servoy behaving like this.
I hope some one could provide a proper solution for this problem..
Regards,
Disappointed Abrahim
And as a fellow developer I am sorry to hear that you are so frustrated and disappointed. In truth, while many people here, including some of the Servoy staff, are happy to take their time on this forum and try to help you solve problems, it is not the best approach when you need real technical support. And it sounds like you need some!
I can say that I’ve been reading this forum for over a year and the problem you are seeing is not inherent to Servoy. IMO, there is something going on with your solution itself (as opined by someone else on this thread).
I would suggest that you write to support@servoy.com and request a support incident. I am 100% confident that with real support from Servoy they will hang in there with you until this is solved.
If you are a SAN member, remember that you get 2 free support incidents. (And if you are not a SAN member, consider joining!)