Developer gets slow and slower until it hangs

Hi there,

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

Please advice,

Thanks,

Abrahim

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.)

kazar

kazar,

I just finished testing Servoy on a Server with Dual Xeon processor and 2 Gig RAM.
Servoy still is giving me the same error.

Abrahim

Sounds like a memory leak of some sort. You wouldn’t happen to be using the JToolBar technique mentioned in http://forum.servoy.com/viewtopic.php?t=4214&highlight=

Because that technique causes a memoryleak in developer when switching to designmode and back (or at least it did before 2.2.1 RCx).

But then again, this leak was rather small, so it should take quite a while to fill up 1 GB of RAM

Paul

So,

What is the solution?

Thanks,

Abrahim

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.

paul

Paul, thanks for you suggestions.

I already exported and imported smaller solution without any problem.
There are two situations when this problem appears.

  1. When Im importing my main solution.
  2. When Im using developer in the designer mode gradually gets slow and slower.

Thanks,

Abrahim

Abrahim, are you using animated gif’s? because that causes a memory-leak too!

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…

patrick,

Please read the following thread:

http://forum.servoy.com/viewtopic.php?t=4920

Thanks,

Abrahim

Confirms at one point my impression, when Sebastiaan writes:

There are a lot of errors in your log file, some things that need fixing in your solution.

Have you checked out those?

Patrick,

But, the solution is fully functional.

Abrahim

Hello Abrahim,

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.

Hope this helps a bit

Abrahim

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.

Hope this helps

Graham Greensall
Worxinfo Ltd

Graham,

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.

Abrahim

Ibrahim

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)

Graham,

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.

Abrahim

To answer some of the questions that has been asked previously.

Im not using any JToolBar bean and animation.
All Im using is simple “Servoy Buttons” and some methods with SQL query.

It is getting very frustrating for me, because Servoy Developer in designer mode getting slower and slower.

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 is your solution free of errors now? If you have errors, you can get all kinds of strange behaviour…

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!)

kazar