B4J Question B4J slow

claudiob4

Member
Licensed User
Longtime User
Hi all, I have a problem with B4J which has become very slow to start and load programs. Times exceed 40 seconds. The feeling is that it looks for a connection that does not respond and waits for the timeout to start. I have already uninstalled and reinstalled B4J and Java Sdk but nothing to do. When I compile debugging, it frequently gives me the message B4J does not answer, and then it finally starts. My version is 6.30. If I disable the wifi the waiting times are reduced to 10 seconds.
Some idea?
 

claudiob4

Member
Licensed User
Longtime User
Some data:

Machine: Asus F550C
SO: Windows 8.1 x64 Intel I3 1.80GHz
Antivirus: Windows Dfender
Firewall: Windows firewall

B4A: C:\Program Files (x86)\Anywhere SoftwareV8\Basic4android Ver. 8
B4A start in 14 seconds
B4J: C:\Program Files (x86)\Anywhere Software\B4J Ver. 6.30
B4J start in 40 seconds

If I turn off antivirus and firewall the problem remains.

In release mode it works well.

Thank you for your interest
 
Upvote 0

claudiob4

Member
Licensed User
Longtime User
I have compiled the File / New program so as to be as simple as possible.
Single operating steps:

Launch B4J, it takes about 35-40 seconds.

Compile the new program in debug.
B4J_1.jpg



After 30 seconds of waiting the compiler starts.

B4J_2.jpg



The program is compiled and launched.

B4J_3.jpg
 
Upvote 0

Diceman

Active Member
Licensed User
The project saved.

The B4J IDE loads Test2 project in a second. The program runs in 1/2 second.
Try re-installing B4J (download latest version?) and check your config paths. It might be referencing an old set of library files.

You can download Procmon from SysInternals https://docs.microsoft.com/en-us/sysinternals/downloads/procmon
and it will show you which files are being opened and where they are located. Add a filter if you want to limit the # of files it reports on.
Fantastic program. Can't live without it.
 
Upvote 0

claudiob4

Member
Licensed User
Longtime User
Hi to all. Thanks to Diceman and alwaysbusy for yours suggestions and thanks to Erel for having centered the problem. B4J works correctly, the problem is that there are shared folders that are not shown and that I can not unlock. I also tried with net share but nothing to do. When I save the file, the system searches for the shared files and waits for the timeout.
 
Upvote 0

claudiob4

Member
Licensed User
Longtime User
Hi to all. The local network does not generate the problem. The problem comes when I'm connected to the Internet. B4J needs more than 40 seconds to start and a similar time to save a file from the inside. The strange thing is that B4A does not have this problem. It seems that B4J calls something on the Internet that does not respond and waits for the timeout to proceed.
 
Upvote 0

Diceman

Active Member
Licensed User
Hi to all. The local network does not generate the problem. The problem comes when I'm connected to the Internet. B4J needs more than 40 seconds to start and a similar time to save a file from the inside. The strange thing is that B4A does not have this problem. It seems that B4J calls something on the Internet that does not respond and waits for the timeout to proceed.

Download and install the latest version of B4J https://www.b4x.com/b4j.html and put it in a different directory. Run it and see if you still have a problem.
 
Upvote 0

Diceman

Active Member
Licensed User
Yes, everything.

You need to determine what destination B4J.exe is trying to connect to, and failing (timing out).
Download Process Monitor from sysinternals using https://docs.microsoft.com/en-us/sysinternals/downloads/procmon

Install ProcMon and run it. It will show you all of the processes that are running.
Run B4J and in Procmon Double click on B4J.exe and open the TCP/IP tab and it should show you the TCP/IP connections for this process. It may give you a hint on what it is trying to do.

If you need more information there is always WireShark which is a free download but more difficult to use.
You can get it here https://www.wireshark.org
 
Upvote 0

Diceman

Active Member
Licensed User
There is something else that I thought of. Are you sure your Windows Path or your B4J Configuration path is NOT referencing a CD-ROM drive or USB drive or network drive that is offline? The ProcMon program I told you about a couple of days ago (#9) would show you the complete file name that B4J.exe is trying to access.
 
Upvote 0
Top