Calling ASMX service takes very long on Xamarin.Android

phantonymphantonym Member ✭✭
edited May 2018 in Xamarin.Android

I am connecting to an ASMX service (wsdl, web reference, soap).

The first call takes 1-2 minutes. Why does it take so long?

Entire output log: https://hastebin.com/oloxukuruc.cs

The output shows:

05-16 10:50:04.364 D/Mono (17736): Assembly Ref addref System.Web.Services[0x9b57c4a0] -> System.Xml[0x9b57b8a0]: 4
05-16 10:50:04.925 D/Mono (17736): Assembly Ref addref MyProject.Android[0x9e392d80] -> System.Xml[0x9b57b8a0]: 5
05-16 10:50:06.436 D/Mono (17736): Assembly Ref addref System.Xml[0x9b57b8a0] -> System[0x9d560f40]: 8
05-16 10:50:10.318 I/zygote (17736): Explicit concurrent copying GC freed 748(126KB) AllocSpace objects, 0(0B) LOS objects, 66% free, 789KB/2MB, paused 4.864ms total 16.615ms
05-16 10:50:10.318 D/Mono (17736): GC_TAR_BRIDGE bridges 41 objects 1336 opaque 507 colors 41 colors-bridged 41 colors-visible 41 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.08ms tarjan 1.10ms scc-setup 0.10ms gather-xref 0.07ms xref-setup 0.07ms cleanup 0.09ms
05-16 10:50:10.318 D/Mono (17736): GC_BRIDGE: Complete, was running for 19.35ms
05-16 10:50:10.318 D/Mono (17736): GC_MINOR: (Nursery full) time 12.62ms, stw 15.23ms promoted 556K major size: 1520K in use: 812K los size: 1024K in use: 124K

The GC_TAR_BRIDGE, GC_BRIDGE, GC_MINOR message will repeat themselves for about 1 minute then this:

Thread finished: #4
Thread started: #8
The thread 0x4 has exited with code 0 (0x0).

Then more repeating GC_ messages for 20 seconds then this:

05-16 10:51:08.395 D/Mono (17736): Image addref Mono.Security[0x9b57c1a0] -> Mono.Security.dll[0x846b4c00]: 2
05-16 10:51:08.396 D/Mono (17736): Prepared to set up assembly 'Mono.Security' (Mono.Security.dll)
05-16 10:51:08.396 D/Mono (17736): Assembly Mono.Security[0x9b57c1a0] added to domain RootDomain, ref_count=1
05-16 10:51:08.397 D/Mono (17736): AOT: image 'Mono.Security.dll.so' not found: dlopen failed: library "/data/app/com.companyname.MyComop.MyApp-8_BtN6K2bHhDLyHNUEBq6Q==/lib/x86/libaot-Mono.Security.dll.so" not found

Tagged:
Sign In or Register to comment.