How long should it take for a form to open?

  • 2
  • Question
  • Updated 4 years ago
  • Answered
Archived and Closed

This conversation is no longer open for comments or replies and is no longer visible to community members. The community moderator provided the following reason for archiving: Old

It was taking 30-45 seconds to open a form. So we tried clearing the java cache, deleting temporary internet files, and finally uninstalling and reinstalling java. It's down to about 20 seconds per form. Is this normal or should it be faster?
Photo of Nathan

Nathan

  • 80 Points 75 badge 2x thumb

Posted 6 years ago

  • 2
Photo of Paul

Paul, Alum

  • 5,714 Points 5k badge 2x thumb
Official Response
Hi Nathan!

Thanks for your post!  20 seconds per form is pretty close to normal load times.  Load times can really vary based on the hardware in your computer and also by how much information the form has to load.  For example, if you are trying to send an invoice for 10 purchase orders, it may take the form longer to load because it has to load all the data from each purchase order.  The steps you have taken above are great steps to make the forms load faster. There are a couple other steps you can take.  You could try reverting back to an older version of Java, (we've seen success with version 7, update 11) or you can also try adding a java memory string.  I've outlined some steps below to add this string.

First you need to see how much processing power your computer has.  To do this, click the "Start" button on your computer, then click right click on "Computer" or "My Computer and choose "Properties".  This will bring you to some specifications on the hardware inside your computer.  On this screen, you are looking for this information.



Take note of the amount of RAM you have. Once you have that, you can close the window.

Next you need to go to the Java program settings on your computer.  To do this, click the "Start" button on your computer, then click "Control Panel".  Here you want to double-click on the Java icon (you may need to click on "Programs" before the Java icon becomes available).  This will open up the Java Control Panel and should look similar to the picture below.



1. Click on the Java tab.
2. Click the View button under the Java Applet Runtime Settings 
3. Under Java Runtime Parameters type –Xms###m –Xmx###m
4. Replace the ##'s with the amount of Ram allotted for Java. The first set of numbers is the minimum amount of RAM allowed for Java and the second set is the maximum. The guideline is that you do not use more than half of the computers available RAM. For example if you had 8.00 GB of RAM you would set the range from –Xms3500m –Xmx4000m. To get those numbers, simply multiple the RAM you have by 1000 and then divide that by 2.  This will get you the maximum number you can enter.  I recommend not adding up to half right away and starting with a smaller string. This way you can judge the effect and decide if you want to add more to make it faster.
5. Click OK
6. Click Apply on the right side of the Java Control Panel 
7. Click OK and close out of the Java Control Panel

It may be beneficial to close any open internet browser windows, so the Java settings can take effect.  Once you do this, log back into WebForms and try loading a form.  Please let me know if you have any additional questions or if I can clarify anything above.  Have a great weekend!

Photo of paulchan

paulchan

  • 82 Points 75 badge 2x thumb
This reply was created from a merged topic originally titled
SPS slow when creating order and shipping.


SPS is terribly slow on a Windows 7 PC. It takes 30 second - 1 minute to create orders and the same amount of time to create shipping labels. When there are hundreds to do, this is terribly slow. Help please!!
Photo of Paul

Paul, Alum

  • 5,714 Points 5k badge 2x thumb
Hi Paulchan,

Thank you for your post.  I've merged your post with this existing post as I think the steps indicated above will help speed up how long it takes to load up the forms.  By adding the java memory string, you can significantly speed up the amount of time it takes to load forms.  Please let me know if you have any additional questions or if I can clarify anything for you.
Photo of Jeff Plummer

Jeff Plummer

  • 60 Points

Paul,

I'm reviewing this a year after it was posted, and am running java 8 update 40.  Does what you describe up above work on 8.40?  I'm not sure where to enter the -Xms####m -Xmx####m bit.

Photo of Jordan

Jordan, Software Engineer

  • 7,480 Points 5k badge 2x thumb
Hi Jeff,

I will respond to this as Paul has moved departments.  I just downloaded Java 8u40 and it appears we are still able to a Runtime Parameter.  Below is a screenshot of what this looking like to me.  You will want to navigate to the Java tab, click View... and you will be able to enter your  Runtime Parameter. Let me know if you have any questions!



The loading time of forms depends on internet speed, computer memory (which we are optimizing above), and an overall usage of the site.  The last dependency does not play a large factor unless you are creating a document with a very high number of items on it.

This conversation is no longer open for comments or replies.