tufanv Expert Licensed User Longtime User Mar 1, 2020 #1 Hello, After adding some lines of codes my b4j is starting to run slow, typing code comes laggy and everything works slower on the ide although I have a high end computer. What may be the problem ? I saw some ini config changes in the search for "b4j slow" but they did not work out. Thanks
Hello, After adding some lines of codes my b4j is starting to run slow, typing code comes laggy and everything works slower on the ide although I have a high end computer. What may be the problem ? I saw some ini config changes in the search for "b4j slow" but they did not work out. Thanks
delgadol Member Mar 1, 2020 #2 if you have many jvm process running, if possible that your app run very very slow, others case is if your new code need many resources , example manage big file size or proccess a api with remote server in over load (long time resquest ) Upvote 0
if you have many jvm process running, if possible that your app run very very slow, others case is if your new code need many resources , example manage big file size or proccess a api with remote server in over load (long time resquest )
Erel B4X founder Staff member Licensed User Longtime User Mar 2, 2020 #3 Does it only happen with B4J? Are there many red errors in the code? Upvote 0
tufanv Expert Licensed User Longtime User Mar 2, 2020 #4 Erel said: Does it only happen with B4J? Are there many red errors in the code? Click to expand... I didnt check b4a or b4i but there are no so much errors. Also it is very slow that I end up tryping the code and code comes laggy and when when it finally ends typing them on the screen, it takes 5-6 econds for b4j to understand that there is no problem at the code ( it goes from red to black after 5-6 seconds ) Upvote 0
Erel said: Does it only happen with B4J? Are there many red errors in the code? Click to expand... I didnt check b4a or b4i but there are no so much errors. Also it is very slow that I end up tryping the code and code comes laggy and when when it finally ends typing them on the screen, it takes 5-6 econds for b4j to understand that there is no problem at the code ( it goes from red to black after 5-6 seconds )
tufanv Expert Licensed User Longtime User Mar 2, 2020 #5 delgadol said: if you have many jvm process running, if possible that your app run very very slow, others case is if your new code need many resources , example manage big file size or proccess a api with remote server in over load (long time resquest ) Click to expand... I don't have. Upvote 0
delgadol said: if you have many jvm process running, if possible that your app run very very slow, others case is if your new code need many resources , example manage big file size or proccess a api with remote server in over load (long time resquest ) Click to expand... I don't have.
Erel B4X founder Staff member Licensed User Longtime User Mar 2, 2020 #6 This is not normal. Have you tried to restart the PC? Upvote 0
tufanv Expert Licensed User Longtime User Mar 2, 2020 #7 Yes, no luck. This evening I will post a video from the ide, you can understand better. I am using 2 monitors but I dont think that may be related. Upvote 0
Yes, no luck. This evening I will post a video from the ide, you can understand better. I am using 2 monitors but I dont think that may be related.
Erel B4X founder Staff member Licensed User Longtime User Mar 2, 2020 #8 A video will not help. Start a new project. If it is slow then there is a local problem. Maybe anti virus is doing something. It is not related to the two monitors. Upvote 0
A video will not help. Start a new project. If it is slow then there is a local problem. Maybe anti virus is doing something. It is not related to the two monitors.
tufanv Expert Licensed User Longtime User Mar 2, 2020 #9 Erel said: A video will not help. Start a new project. If it is slow then there is a local problem. Maybe anti virus is doing something. It is not related to the two monitors. Click to expand... At first there are no problems it starts after having aroun 300-400 lines of code Upvote 0
Erel said: A video will not help. Start a new project. If it is slow then there is a local problem. Maybe anti virus is doing something. It is not related to the two monitors. Click to expand... At first there are no problems it starts after having aroun 300-400 lines of code
Erel B4X founder Staff member Licensed User Longtime User Mar 2, 2020 #10 Close the IDE and delete the INI file. See if it helps. Upvote 0
tufanv Expert Licensed User Longtime User Mar 3, 2020 #11 Deleted the ini, still slow but not as yesterdays Also I dont have virus or malware in my computer but I also checked it with Kaspersky, ( I have it on pc enabled ) no sign of anything. Also b4i and b4a doesnt have this behaviour, on my laptop everything is normal. Upvote 0
Deleted the ini, still slow but not as yesterdays Also I dont have virus or malware in my computer but I also checked it with Kaspersky, ( I have it on pc enabled ) no sign of anything. Also b4i and b4a doesnt have this behaviour, on my laptop everything is normal.
J John Naylor Active Member Licensed User Longtime User Mar 3, 2020 #12 I had similar with large b4j apps (which didn't happen in B4A) and solved it in an unlikely way which may or may not be relevant in your case. Every now and then b4j 'froze' for a second or two but if I was still typing the characters would appear when b4j unfroze. The solution for me? I changed the batteries in my wireless keyboard and mouse. I could only put it down to some strange interaction between my keyboard or mouse driver and the Java processes running in the background. I appreciate the chance of this being your issue is very slim but this worked for me so I would be remiss if I didn't offer it up! Upvote 0
I had similar with large b4j apps (which didn't happen in B4A) and solved it in an unlikely way which may or may not be relevant in your case. Every now and then b4j 'froze' for a second or two but if I was still typing the characters would appear when b4j unfroze. The solution for me? I changed the batteries in my wireless keyboard and mouse. I could only put it down to some strange interaction between my keyboard or mouse driver and the Java processes running in the background. I appreciate the chance of this being your issue is very slim but this worked for me so I would be remiss if I didn't offer it up!
MichalK73 Well-Known Member Licensed User Longtime User Mar 3, 2020 #13 GymReaper said: Every now and then b4j 'froze' for a second or two but if I was still typing the characters would appear when b4j unfroze. Click to expand... I have the same thing on a laptop, not on a PC. I need to test what you say with the battery in the mouse, just take the mouse on the USB cable. I will check your theory at home. Upvote 0
GymReaper said: Every now and then b4j 'froze' for a second or two but if I was still typing the characters would appear when b4j unfroze. Click to expand... I have the same thing on a laptop, not on a PC. I need to test what you say with the battery in the mouse, just take the mouse on the USB cable. I will check your theory at home.
tufanv Expert Licensed User Longtime User Mar 4, 2020 #14 Thanks for advice but they are all wired for me. Upvote 0
Harris Expert Licensed User Longtime User Mar 4, 2020 #15 Mine does this when the auto-backup is running. The whole IDE will freeze (can't scroll page, type chars, etc) until the backup completes. You can see this on the status bar when the backup file (zip) is completed successfully. This is my B4A ide, where auto-backup is ON. I have it turned off in B4J at the moment... Upvote 0
Mine does this when the auto-backup is running. The whole IDE will freeze (can't scroll page, type chars, etc) until the backup completes. You can see this on the status bar when the backup file (zip) is completed successfully. This is my B4A ide, where auto-backup is ON. I have it turned off in B4J at the moment...
Erel B4X founder Staff member Licensed User Longtime User Mar 5, 2020 #16 Auto backup can cause it with large projects however it runs once every 10 minutes. Upvote 0
MichalK73 Well-Known Member Licensed User Longtime User Mar 7, 2020 #17 You're right. Freezing B4J is associated with autobackup and not with a wired mouse. Upvote 0
Harris Expert Licensed User Longtime User Mar 8, 2020 #18 MichalK73 said: You're right. Freezing B4J is associated with autobackup and not with a wired mouse. Click to expand... and larger projects... whatever large implies... (mine is currently 15 MB). Maybe a button and reminder to backup, rather than scheduled every 10 mins... Upvote 0
MichalK73 said: You're right. Freezing B4J is associated with autobackup and not with a wired mouse. Click to expand... and larger projects... whatever large implies... (mine is currently 15 MB). Maybe a button and reminder to backup, rather than scheduled every 10 mins...
Erel B4X founder Staff member Licensed User Longtime User Mar 8, 2020 #19 You can disable auto backup if it is an issue for you: Tools - IDE Options - Auto Backup. Upvote 0