Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
brsaca
Posts: 7
Registered: ‎07-16-2008
My Device: Not Specified
Accepted Solution

slowly download files fileconnection

i have a midlet that has to write files dowloading by http. everything works fine the problem its that i have a funtion that connects and download 548 files. when it starts its quickly but when it has downloaded 20 files it starts to get slowly so by the time when it has downloades all the files it has been 10 minutes :smileysad:

 

I cant wait 10 minutes to download all the files, when i see the debugg info i can see that appears some process that take time

 

VM:TI2Rv=30
VM:-CR=0
conexion:: http://.../tests/tme-cc/comm_error1.mcd;deviceside=true;ConnectionUID=WAP2 trans
CodeStore.DependencyList.buildModuleDependencyList() took 0 - [16]
conexion:: http://.../tests/tme-cc/comm_error2.mcd;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/comm_reject.mcd;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/content_error.mcd;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/cont_mainmenu.mcd;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/end.mcd;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/errornotfound.mcd;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/exit_confirm.mcd;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/info.mcd;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/intro.mcd;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/list.txt;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/loading.mcd;deviceside=true;ConnectionUID=WAP2 trans
VM:+GC(F)w=23
VM:-GCt=2,b=0,r=0,g=1
VM:+CR
VM:TI2Rv=29
VM:-CR=0
conexion:: http://.../tests/tme-cc/not_available.mcd;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/not_found.mcd;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/soft_menu.mcd;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/sys_error.mcd;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/audios/confirm_exit.amr;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/audios/end.amr;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/audios/infofee_calls.amr;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/audios/infofee_mensajes.amr;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/audios/infofee_videollamada.amr;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/audios/infofee_voz.amr;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/audios/infofee_voz_mensajes.amr;deviceside=true;ConnectionUID=WAP2 trans
VM:+GC(F)w=23
VM:-GCt=5,b=0,r=0,g=1
VM:+CR
VM:TI2Rv=21
VM:-CR=1
conexion:: http://.../tests/tme-cc/audios/main_menu.amr;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/audios/service_contract.amr;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/audios/transfer1.amr;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/audios/tremcond.amr;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/audios/welcome.amr;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/Copyright.mcd;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/loading.mcd;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/no_compl.mcd;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/popupid.mcd;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/popup_num_no_valido.mcd;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/processing.mcd;deviceside=true;ConnectionUID=WAP2 trans
VM:+GC(F)w=23
VM:-GCt=3,b=0,r=0,g=1
VM:+CR
VM:TI2Rv=19
VM:-CR=0
conexion:: http://.../tests/tme-cc/common/promo.mcd;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/success.mcd;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/success_cont.mcd;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/transfer.mcd;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/update.mcd;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/updatecancel.mcd;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/updateprocess.mcd;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/images/background.png;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/images/btn_accept.png;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/images/btn_accept_off.png;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/images/btn_atras_no.png;deviceside=true;ConnectionUID=WAP2 trans
VM:+GC(F)w=23
VM:-GCt=3,b=0,r=0,g=1
VM:+CR
VM:TR2Iv=60
VM:-CR=0
conexion:: http://.../tests/tme-cc/common/images/btn_atras_yes.png;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/images/btn_cancel.png;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/images/btn_cancel_off.png;deviceside=true;ConnectionUID=WAP2 trans
CodeStore.DependencyList.buildModuleDependencyList() took 0 - [33]
CodeStore.DependencyList.buildModuleDependencyList() took 0 - [24]
conexion:: http://.../tests/tme-cc/common/images/btn_confirmar_no.png;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/images/btn_confirmar_yes.png;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/images/btn_continue_no.png;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/images/btn_continue_yes.png;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/images/btn_contratar.png;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/images/btn_contratar_off.png;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/images/btn_exit.png;deviceside=true;ConnectionUID=WAP2 trans
VM:+GC(F)w=23
VM:-GCt=3,b=0,r=0,g=1
VM:+CR
VM:TI2Rv=59
VM:TI2Rv=2
VM:TI2Rv=22
VM:TI2Rv=24
VM:TI2Rv=25
VM:TI2Rv=27
VM:TI2Rv=23
VM:TI2Rv=18
VM:TI2Rv=17
VM:TI2Rv=15
VM:TI2Rv=14
VM:TI2Rv=13
VM:TI2Rv=12
VM:TI2Rv=11
VM:TI2Rv=7
VM:TI2Rv=6
VM:TR2Iv=52
VM:TR2Iv=75
VM:TR2Iv=74
VM:TR2Iv=73
VM:TR2Iv=68
VM:TR2Iv=61
VM:TR2Iv=62
VM:TR2Iv=63
VM:TR2Iv=58
VM:TR2Iv=51
VM:TR2Iv=34
VM:TR2Iv=50
VM:TR2Iv=45
VM:TR2Iv=41
VM:TR2Iv=39
VM:-CR=4
conexion:: http://.../tests/tme-cc/common/images/btn_exit_off.png;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/images/btn_llamar.png;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/images/btn_llamar_off.png;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/images/btn_no.png;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/images/btn_no_off.png;deviceside=true;ConnectionUID=WAP2 trans
conexion:: http://.../tests/tme-cc/common/images/btn_update.png;deviceside=true;ConnectionUID=WAP2 trans

 

 

is there some way to hurry this process or do something to make it quicklier?????

BlackBerry Development Advisor
MSohm
Posts: 14,757
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: slowly download files fileconnection

500+ files is a lot to download over a wireless network connecction.  How big are the files? 

 

You could use the Profile tool of the BlackBerry JDE to see if the slow down occurs within your code or on the wireless network.  For more information please see the "Optimize source code using the BlackBerry Integrated Development Environment profiler tool" section of the BlackBerry Java Development Environment - Multimedia Development Guide found here:  http://na.blackberry.com/eng/support/docs/subcategories/?userType=21&category=BlackBerry+Java+Applic...

 

If it is within your code you can work towards optimizing the sections that are taking the most resources.

 

If the slowdown is on the network itself there isn't antying you'll be able to do about it from within your application.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker