[SOLVED] Firefox takes a lot of time to load ...

Since a couple of months I have this little annoying problem with firefox:
It takes 6/7 sec to start.
I use strace to see if I can find what the problem is, but sincerely I am not an expert.
Anyway, I find something interesting ... 
03:31:24.575495 mmap(0x7f2c5aa3d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 7, 0x4000) = 0x7f2c5aa3d000
03:31:24.575543 close(7) = 0
03:31:24.575613 mprotect(0x7f2c5aa3d000, 4096, PROT_READ) = 0
03:31:24.575636 munmap(0x7f2c6e61a000, 216499) = 0
03:31:24.575712 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 7
03:31:24.575740 connect(7, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.1.1")}, 16) = 0
03:31:24.575793 poll([{fd=7, events=POLLOUT}], 1, 0) = 1 ([{fd=7, revents=POLLOUT}])
03:31:24.575828 sendto(7, "\202\257\1\0\0\1\0\0\0\0\0\0\5kanon\7homenet\rtelec"..., 48, MSG_NOSIGNAL, NULL, 0) = 48
03:31:24.575885 poll([{fd=7, events=POLLIN}], 1, 5000) = 1 ([{fd=7, revents=POLLIN}])
03:31:24.576696 ioctl(7, FIONREAD, [48]) = 0
03:31:24.576734 recvfrom(7, "\202\257\201\203\0\1\0\0\0\0\0\0\5kanon\7homenet\rtelec"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.1.1")}, [16]) = 48
03:31:24.576768 close(7) = 0
03:31:24.576795 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 7
03:31:24.576816 connect(7, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.1.1")}, 16) = 0
03:31:24.576841 poll([{fd=7, events=POLLOUT}], 1, 0) = 1 ([{fd=7, revents=POLLOUT}])
03:31:24.576863 sendto(7, "\316\21\1\0\0\1\0\0\0\0\0\0\5kanon\0\0\1\0\1", 23, MSG_NOSIGNAL, NULL, 0) = 23
03:31:24.576892 poll([{fd=7, events=POLLIN}], 1, 5000) = 0 (Timeout)
03:31:29.582097 poll([{fd=7, events=POLLOUT}], 1, 0) = 1 ([{fd=7, revents=POLLOUT}])
03:31:29.582251 sendto(7, "\316\21\1\0\0\1\0\0\0\0\0\0\5kanon\0\0\1\0\1", 23, MSG_NOSIGNAL, NULL, 0) = 23
03:31:29.582329 poll([{fd=7, events=POLLIN}], 1, 5000) = 1 ([{fd=7, revents=POLLIN}])
03:31:29.614366 ioctl(7, FIONREAD, [98]) = 0
As you can see, it waits 5 sec after a call.
Any idea?
Last edited by saronno (2014-09-13 13:46:22)

stevenhoneyman wrote:
edit: there's a "-v" parameter for strace that should show the unabbreviated stuff
When it happens, run:  lsof -p <pid>
And see what the file descriptors are pointing to
A few questions to try narrow it down if that is a dead end:
Same behaviour if you close it and reopen... or just for the 1st time?
Compiled/linked with "-z now"?
Same with an empty profile?
SSD or HDD?
Timeout happens only if you start firefox and only if no other instances of firefox
are running: so, if there is an existing instance running, the second window
start very quickly.
On reopen same problem.
On closing no problem.
Same thing if I cancel the profile and start it with a new one.
I tried the -v option with strace but I get
the same information as above.
15:13:23.715748 open("/usr/lib/libnss_dns.so.2", O_RDONLY|O_CLOEXEC) = 7
15:13:23.715774 read(7, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\21\0\0\0\0\0\0"..., 832) = 832
15:13:23.715808 fstat(7, {st_dev=makedev(8, 4), st_ino=4639110, st_mode=S_IFREG|0755, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=48, st_size=22960, st_atime=2014/09/13-14:53:16, st_mtime=2014/05/16-10:15:29, st_ctime=2014/05/24-14:28:05}) = 0
15:13:23.715867 mmap(NULL, 2117896, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 7, 0) = 0x7f8b10639000
15:13:23.715893 mprotect(0x7f8b1063e000, 2093056, PROT_NONE) = 0
15:13:23.715927 mmap(0x7f8b1083d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 7, 0x4000) = 0x7f8b1083d000
15:13:23.715969 close(7) = 0
15:13:23.716053 mprotect(0x7f8b1083d000, 4096, PROT_READ) = 0
15:13:23.716077 munmap(0x7f8b24413000, 216499) = 0
15:13:23.716157 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 7
15:13:23.716186 connect(7, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.1.1")}, 16) = 0
15:13:23.716253 poll([{fd=7, events=POLLOUT}], 1, 0) = 1 ([{fd=7, revents=POLLOUT}])
15:13:23.716292 sendto(7, "\24\214\1\0\0\1\0\0\0\0\0\0\5kanon\7homenet\rtelec"..., 48, MSG_NOSIGNAL, NULL, 0) = 48
15:13:23.716361 poll([{fd=7, events=POLLIN}], 1, 5000) = 1 ([{fd=7, revents=POLLIN}])
15:13:23.717180 ioctl(7, FIONREAD, [48]) = 0
15:13:23.717231 recvfrom(7, "\24\214\201\203\0\1\0\0\0\0\0\0\5kanon\7homenet\rtelec"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.1.1")}, [16]) = 48
15:13:23.717292 close(7) = 0
15:13:23.717318 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 7
15:13:23.717350 connect(7, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.1.1")}, 16) = 0
15:13:23.717403 poll([{fd=7, events=POLLOUT}], 1, 0) = 1 ([{fd=7, revents=POLLOUT}])
15:13:23.717438 sendto(7, "n\343\1\0\0\1\0\0\0\0\0\0\5kanon\0\0\1\0\1", 23, MSG_NOSIGNAL, NULL, 0) = 23
15:13:23.717467 poll([{fd=7, events=POLLIN}], 1, 5000) = 0 (Timeout)
15:13:28.722665 poll([{fd=7, events=POLLOUT}], 1, 0) = 1 ([{fd=7, revents=POLLOUT}])
15:13:28.722813 sendto(7, "n\343\1\0\0\1\0\0\0\0\0\0\5kanon\0\0\1\0\1", 23, MSG_NOSIGNAL, NULL, 0) = 23
15:13:28.722885 poll([{fd=7, events=POLLIN}], 1, 5000) = 1 ([{fd=7, revents=POLLIN}])
15:13:28.743628 ioctl(7, FIONREAD, [98]) = 0
15:13:28.743697 recvfrom(7, "n\343\201\203\0\1\0\0\0\1\0\0\5kanon\0\0\1\0\1\0\0\6\0\1\0\0&\364"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.1.1")}, [16]) = 98
15:13:28.743750 close(7) = 0
Anyway, if I understand correctly, It waits for something to read (POLLIN event) ...
fd=7 should be a socket ... a connection to the port 53 of my router ... probably a DNS request, right?
I use an HDD on this machine.
A curious thing is that thunderbird have the same problem.
Last edited by saronno (2014-09-13 13:28:57)

Similar Messages

  • Page using Coolite Combos take a lot of time to load

    I´m using a WEB page that use Coolite combos (now Ext.Net controls). These combos has around 400 to 500 rows of data (aroud 50 bytes each row).
    If I use Google Chrome (last version) or Internet Explorer 8 the page is loaded inmediatly, but using Firefox 3.6.18, 4.0 or 5.0 take a lot of time, between 7 and 20 seconds to load. The load indicator (a green circle) freeze also.
    If you need, I can publish a sample page with the Coolite combos, please say me if you need it.
    Thanks in advance, Jose

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • User List applet takes a lot of time to load

    Hi,
    There are around 5000 users in identity manager. When I login into identity manager and click on 'list accounts', it takes a lot of time for the User List applet to load. I had enabled trace in the user form that is associated with the user.
    And i found that the user form was getting processed for every user in identity manager after clicking on 'List Accounts' . I have added a couple of rules in the user form. These rules are also getting processed for every user in identity manager. As a result, it takes a lot of time for the User List applet to load.
    Is there a way to disable the form processing that happens after clicking on 'List Users' ?

    Hi,
    There are around 5000 users in identity manager. When I login into identity manager and click on 'list accounts', it takes a lot of time for the User List applet to load. I had enabled trace in the user form that is associated with the user.
    And i found that the user form was getting processed for every user in identity manager after clicking on 'List Accounts' . I have added a couple of rules in the user form. These rules are also getting processed for every user in identity manager. As a result, it takes a lot of time for the User List applet to load.
    Is there a way to disable the form processing that happens after clicking on 'List Users' ?

  • Since the last update (version 12), Firefox takes a lot of time to open new tabs, usually it open them, but i can't see the tabs and browse through them

    it also ignore my mouse clicks on tabs.
    i can browse them only by ctrl+Tab (but i see only the first tab on the tab bar...)

    hello, in order to further diagnose the issue please [[Troubleshoot Firefox issues using Safe Mode|run firefox in safemode once]] & see if the problem is occuring there too. if not it may be related to one of your addons or hardware acceleration. in this case try disabling all extensions in tools > addons > extension, restart firefox and reenable the extensions one-by-one (restarts of the browser might be necessary after each time) until you find the one that's causing it. you can disable hardware acceleration in tools > options > advanced > general.
    if the two suggestions from above don't help, please also have a look at your security-software & make sure it's not blocking/sandboxing the updated version of firefox or the plugin-container...

  • ITunes takes a lot of time to load.

    Hi, I'm new to this forum.
    I've got a little issue with iTunes ( Latest version ). When I launch it ( Even without any program opened ), it takes like 5 minutes to load and it is pretty boring. After, it's going fine. I didn't have this issue before. I've searched that on those forums but I didn't find anything.
    Thanks in advance for your help!

    Hi, I'm new to this forum.
    I've got a little issue with iTunes ( Latest version ). When I launch it ( Even without any program opened ), it takes like 5 minutes to load and it is pretty boring. After, it's going fine. I didn't have this issue before. I've searched that on those forums but I didn't find anything.
    Thanks in advance for your help!

  • I'm using Windows XP. I'm on cable high-speed internet. Firefox takes a really long time to load, and says "not responding" for a time before it finally loads, Any suggestions?

    If I use Internet Explorer, it loads almost immediately.

    Here is the fix, the problem is you dont have to setup memory at 30 but 48,
    [http://bloggermind.net/blogging_tools/software/firefox-7-stops-loading-pages-high-cpu-fix/ Firefox Stop Loading Pages FIX]

  • Forms taking lot of time  to  load

    In my machine , forms takes a lot of time to load up. When checked with the IT support they told me that, this problem is there in many IBM-NetVista machines in our Office.
    Has anyone faced similar kind of problems . If so please let me know how it was resolved
    Many Thanks,
    Bibin

    By loading i mean, the form takes time to open up in the Forms Builder .
    Bibin

  • [Solved] embedded videos in firefox take a lot of CPU time

    Playing embeded videos in Firefox take a lot of CPU time. Actually my old computer is not able to play these videos correctly if they are in HD. The problem appears with flash videos (not so surprising, flash sucks...) but also with html5 videos (there is an option in youtube to turn that on). However if I succeed to have the direct URL, these videos play perfecrtlky fine in mplayer using not more than 10-20% of CPU time. Is there a solution to that? Is there any possibility to use an external player to play HTML5 videos in firefox? If anybody knows, Why this problem, are the mozilla folk aware of this problem? (Note that I posted a thread a long time ago for this problem but concerning flash only)
    Last edited by olive (2012-04-27 20:33:59)

    There's not much you can do to make HTML5 videos as fast as Xv, see http://swfdec.freedesktop.org/wiki/FAQ. They are slow for the same basic reason as Flash... the video overlay cannot be used because the standard allows for controls and CSS to be rendered on top of the video.
    As for redirecting to an external player... this is not as easy as it could be. If the videos appeared in <embed> tags or <object> tags, one could use Mozplugger, Media Player Connectivity and other programs, but I don't think one has been written to handle the <video> tag. An upcoming update to firefox will make it use gstreamer, however. If this still results in slow playback, it will at least make it easier to use an external player. I imagine you would have to patch firefox to make it use a port on the localhost as the video sink instead of the screen. Then you would run gst-launch to receive that RTP stream.

  • Server boot takes a lot of time due to JMS persistence file store

    Hi,
    We're using WebLogic 9.2 on a windows machine.
    Recently, we enhanced our application to work with JMS.
    We're using 2 JMS servers on 2 different servers in a cluster, and working with distributed destinations.
    We're using file store as our persistence store.
    Lately, we found that server boot takes a lot of time due to actions which are performed on the file-store.
    Analyzing this problem, we saw that the file size is ~2GB.
    We understand that the file size does not shrink (unless manually compacted), and its size is matching the highest number ever of pending messages in the queues (like a high water-mark).
    We also turned store debug on, using weblogic.Debug.DebugStoreIOPhysical, and we saw a lot of recovery logs after the file-store is opened.
    We've checked and verified that our JMS transactions are completed successfully. We also verified that the number of pending and current messages is 0.
    We've stopped the server gracefully, verifying there are no pending messages.
    However, server boot repeatedly takes ~30 minutes due to heavy work done on the persistence store.
    Compacting or removing the file store eliminates the delay.
    However, we want to avoid manual operations every time we want to boot the server.
    Please share your ideas.
    Thanks,
    Itsik

    The only suggestions I have off the top of my head are:
    * Ensure (1) the host system has at least 2GB (file store size) of free physical memory in addition to the memory used by current processes, and (2) the host system is not rebooted between each WebLogic restart. If you make sure of these two items, then the operating system will implicitly cache the store's file contents in memory even between boots -- when WebLogic subsequently boots the file store, the O/S should serve the file contents up much more quickly.
    * Consider moving to a JDBC store. JDBC store runtime performance is lower, but since you have a typically only have a small amount of records to recover, boot performance should be higher in this case.
    * Not that it helps your particular case, but it happens that we have boot performance enhancements in process for a future release (hopefully a near future release).
    Tom

  • My JSP page takes a lot of time to go to next JSP

    Hi All,
    I have a JSP page which loads dynamically depending on what the user enters. This page works fine for items upto 20-30 but as the number of items increases, my JSP page takes a lot of time to go to the next one. Heres what my JSP looks like:
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-form.tld" prefix="form" %>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    <%@ taglib uri="/WEB-INF/rswtags.tld" prefix="rsw" %>
    <jsp:useBean id="dateFormatIntl" scope="session" type="java.lang.String"/>
    <html>
    <head>
    <title><bean:message key="title.application"/> - <bean:message key='header.return_to_vendor_detail'/></title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <%@ include file="rsw_functions.jsp" %>
    <%@ include file="shipment_rtv_functions.jsp" %>
    <script language="JavaScript" type="text/javascript">
    var page = "<bean:message key='header.return_to_vendor_detail'/>"
    var rtvEntryArray = new Array();
    var totalAmtString;
    function setFormValues()
    var rtvEntriesString = "";
    for (var v = 0; v < rtvEntryArray.length; v++)
    var rtvEntryString = rtvEntryArray[v].itemNumber + "~"
    + rtvEntryArray[v].itemQty + "~"
    <rsw:display displayElementName="rtv_reason">
    + rtvEntryArray[v].inventoryStatusCode + "~"
    + rtvEntryArray[v].inventoryStatusName + "~"
    + rtvEntryArray[v].reasonCodeId + "~"
    + rtvEntryArray[v].reasonCodeName + "~" +
    </rsw:display>
    <rsw:display_false displayElementName="rtv_reason">
    + " " + "~"
    + " " + "~"
    + " " + "~"
    + " " + "~" +
    </rsw:display_false>
    rtvEntryArray[v].valid;
    rtvEntriesString = rtvEntriesString + rtvEntryString + ";";
    document.rtvVsatShipmentForm.rtvEntriesString.value = rtvEntriesString;
    function writeItem(itemNumber, itemQty, inventoryStatusCode, inventoryStatusName,
    reasonCodeId, reasonCodeName)
    if(!acquireFakeLock()) return;
    if (!arrayContainsItem(itemNumber, reasonCodeId))
    addEntry(itemNumber, itemQty, inventoryStatusCode, inventoryStatusName,
    reasonCodeId, reasonCodeName, "true");
    else
    setItemQtyReasonArray(itemNumber, itemQty, reasonCodeId, reasonCodeName);
    writeTable(false);
         releaseFakeLock();
    function handleApply()
    <%-- change this if 'please select...' value changes to something other than a space --%>
    if (document.rtvVsatShipmentForm.applyReasonCode.value == " ")
    alert('<bean:message key="error.must_enter_a_reason" />');
    return;
    if (checkQuantityGreaterThenZero(document.rtvVsatShipmentForm.applyQty))
    formatQuantity(document.rtvVsatShipmentForm.applyQty);
    if (document.rtvVsatShipmentForm.applyId.value == '')
    alert("<bean:message key='error.no_dsd_order_entries' />");
    document.rtvVsatShipmentForm.applyId.focus();
    return;
    writeItem(document.rtvVsatShipmentForm.applyId.value,
    document.rtvVsatShipmentForm.applyQty.value
    <rsw:display displayElementName="rtv_reason">,
    document.rtvVsatShipmentForm.selectedInventoryStatus.options[document.rtvVsatShipmentForm.selectedInventoryStatus.selectedIndex].value,
    document.rtvVsatShipmentForm.selectedInventoryStatus.options[document.rtvVsatShipmentForm.selectedInventoryStatus.selectedIndex].text,
    document.rtvVsatShipmentForm.applyReasonCode.options[document.rtvVsatShipmentForm.applyReasonCode.selectedIndex].value,
    document.rtvVsatShipmentForm.applyReasonCode.options[document.rtvVsatShipmentForm.applyReasonCode.selectedIndex].text
    </rsw:display>
    document.rtvVsatShipmentForm.applyId.value = '';
    document.rtvVsatShipmentForm.applyQty.value = 1;
    document.rtvVsatShipmentForm.applyId.focus();
    <rsw:display displayElementName="rtv_reason">
    document.rtvVsatShipmentForm.selectedInventoryStatus.value
    = document.rtvVsatShipmentForm.selectedInventoryStatus.options[0].value;
    selectFromInvStatus();
    </rsw:display>
    totalAmounts();
    function clearFields()
    document.rtvVsatShipmentForm.returnAuth.value = "";
    document.rtvVsatShipmentForm.applyId.value = "";
    document.rtvVsatShipmentForm.applyQty.value = "1";
    document.rtvVsatShipmentForm.applyId.focus();
    document.rtvVsatShipmentForm.selectedInventoryStatus.value = document.rtvVsatShipmentForm.selectedInventoryStatus.options[0].value;
    selectFromInvStatus();
    function getCurrentOptions()
    if (document.rtvVsatShipmentForm.selectedInventoryStatus.value == "AVAILABLE")
    return availableOptions;
    return unavailableOptions;
    function populateDropDown(dropdownField)
         var currentOptions;
    currentOptions = getCurrentOptions();     
    dropdownField.options.length = 0;
    var oPleaseSelectOption = document.createElement("OPTION");
    oPleaseSelectOption.value = " ";
    oPleaseSelectOption.text = "<bean:message key="label.please_select"/>";
    dropdownField.options.add(oPleaseSelectOption);
    for (var i = 0; i < currentOptions.length; i++)
    dropdownField.options.add(currentOptions);
    function selectFromInvStatus()
    populateDropDown(document.rtvVsatShipmentForm.applyReasonCode);
    function initialize()
    document.rtvVsatShipmentForm.applyId.focus();
    createReasonOptionObjects();
    selectFromInvStatus();
    <logic:equal name="rtvVsatShipmentForm" property="returnAuthRequired" value="true">
    if (document.rtvVsatShipmentForm.returnAuth.value == '')
    document.rtvVsatShipmentForm.returnAuth.focus();
    </logic:equal>
    createEntryArray(document.rtvVsatShipmentForm.rtvEntriesString.value, false);
    <rsw:display displayElementName="rtv_reason">
    </rsw:display>
    totalAmounts();
    function next()
    setFormValues();
    if (document.rtvVsatShipmentForm.rtvEntriesString.value == '')
    alert("<bean:message key='error.no_dsd_order_entries' />");
    document.rtvVsatShipmentForm.applyId.focus();
    return;
    <logic:equal name="rtvVsatShipmentForm" property="returnAuthRequired" value="true">
    if (document.rtvVsatShipmentForm.returnAuth.value == '')
    alert("<bean:message key='error.return_auth_required' />");
    document.rtvVsatShipmentForm.returnAuth.focus();
    return;
    </logic:equal>
    if (!validateTextAreaLength(document.rtvVsatShipmentForm.comments,
    "<bean:message key='label.comments'/>", 255))
    return false;
    document.rtvVsatShipmentForm.submit();
    function doBack()
    backLink.href = "<bean:write name='rtvVsatShipmentForm' property='previousAction' />";
    document.rtvVsatShipmentForm.action=backLink.href;
    document.rtvVsatShipmentForm.submit();
    function handleItemLookup()
    window.open(itemLookupLink.href + "?actionToReturnTo=shipment_rtv_vsat_create&fieldToPopulateUponReturn=applyId","RSWLookupWindow");
    </script>
    <jsp:include page="/elements/top_banner2.jsp" flush="true"/>
    <!-- Beginning of Page Body -->
    <body onload="initialize();displayErrors();">
    <form:form action="shipment_rtv_vsat_to_summary.do" style="margin-top:0">
    <input type="hidden" name="fieldToPopulateUponReturn" value="applyId">
    <span style="display:none">
    <html:link styleId="itemLookupLink" href="item_lookup_start.do"></html:link>
    <html:link styleId="backLink" href="dummyLink"></html:link>
    </span>
    <html:hidden property="rtvEntriesString"/>
    <form:hidden property="fromLocationId" />
    <table width="700" class="bgColor" cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell" rowspan="3"></td>
    <td class="bodymd" width="125">
    <bean:message key="label.rtv_number" />:
    </td>
    <td class="bodymd">
    <bean:write name="rtvVsatShipmentForm" property="rtvNumber" />
    </td>
    <td class="bodymd">
    </td>
    <td class="bodymd">
    <bean:message key= "label.date" />: 
    </td>
    <td class="bodymd" align="left">
    <bean:write name="rtvVsatShipmentForm" property="createDate"/>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    <td colspan="3"></td>
    <logic:equal name="dateFormatIntl" value="true">
    <td align="left" valign="top" class="bodymd">
    <span class="bodyxsm">(<bean:message key="label.date_format_string_intl"/>)</span>
    </td>
    </logic:equal>
    <logic:notEqual name="dateFormatIntl" value="true">
    <td>
    <span class="bodyxsm">(<bean:message key="label.date_format_string_us"/>)</span>
    </td>
    </logic:notEqual>
    </tr>
    <tr>
    <td class="bodymd">
    <bean:message key="label.status" />: 
    <td class="bodymd">
    <rsw:display displayElementName="rtv_status">
    <form:select property="selectedStatusCode" >
    <form:options name="rtvVsatShipmentForm" property="statusIds"
    labelProperty="statusNames" />
    </form:select>
    </rsw:display>
    <rsw:display_false displayElementName="rtv_status">
    <bean:write name="rtvNonVsatShipmentForm" property="selectedStatus.description" />
    </rsw:display_false>
    </td>
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell"></td>
    <td class="bodymd">
    <bean:message key="label.ship_from_location" />:
    </td>
    <td class="bodymd" colspan="5">
    <bean:write name="rtvVsatShipmentForm" property="fromLocationId" />
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell">
    <td class="bodymd">
    <bean:message key="label.supplier_name" />:
    </td>
    <td class="bodymd">
    <bean:write name="rtvVsatShipmentForm" property="supplierName" />
    </td>
    <td class="bodymd" width="125">
    <bean:message key="label.supplier_number" />: 
    </td>
    <td class="bodymd" colspan="3">
    <bean:write name="rtvVsatShipmentForm" property="supplierId" />
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell">
    <td class="bodymd">
    <bean:message key="label.rtv_paid" />: 
    </td>
    <td class="bodymd" align="left">
    <form:select property="selectedPaymentStatusCode" >
    <form:options name="rtvVsatShipmentForm" property="paymentStatusIds"
    labelProperty="paymentStatusNames" />
    </form:select>
    </td>
    <td class="leadSpacerCell">
    </td>
    </tr>
    <%-- <tr>
    <td class="bodymd">
    <bean:message key="label.check_number" />: 
    </td>
    <td class="bodymd" align="left">
    <form:text name="rtvVsatShipmentForm" property="checkNumber" maxlength="12"/>
    </td>
    </tr>
    --%>
    </table>
    <table width="700" class="bgColor" cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td class="spacerCell">
    </td>
    <tr>
    <td class="leadSpacerCell">
    </td>
    <td colspan="3">
    <table border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td class="bodymd">
    <bean:message key="label.return_authorization_no" />: 
    </td>
    <td class="bodymd" align="left">
    <form:text name="rtvVsatShipmentForm" property="returnAuth" maxlength="12"/>
    </td>
    <td class="leadSpacerCell">
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell">
    </td>
    <td class="bodymd" valign="top">
    <bean:message key="label.supplier_address" />
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell">
    </td>
    <td colspan="6">
    <table border="0">
    <tr>
    <td width="10" rowspan="4">
    </td>
    <td class="bodymd">
    <form:text property="addressLine1" style="width:200" />
    </td>
    <td width="5">
    </td>
    <td class="bodymd">
    <bean:message key="label.city" />: 
    </td>
    <td colspan="3" class="bodymd">
    <form:text property="addressCity" style="width:200" />
    </td>
    </tr>
    <tr>
    <td class="bodymd">
    <form:text property="addressLine2" style="width:200" />
    </td>
    <td width="5">
    </td>
    <td class="bodymd">
    <bean:message key="label.state_or_province" />: 
    </td>
    <td class="bodymd">
    <form:text property="addressStateOrProvince" style="width:80" />
    </td>
    <td class="bodymd">
    <bean:message key="label.postal_code" />: 
    </td>
    <td class="bodymd">
    <form:text property="addressPostalCode" style="width:80" />
    </td>
    </tr>
    <tr>
    <td class="bodymd">
    <form:text property="addressLine3" style="width:200" />
    </td>
    <td width="5">
    </td>
    <td class="bodymd">
    <bean:message key="label.country" />: 
    </td>
    <td colspan="3" class="bodymd">
    <form:text property="addressCountry" style="width:200" />
    </td>
    </tr>
    </table>
    </td>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell">
    </td>
    <td class="bodymd" valign="top">
    <bean:message key="label.comments" />: 
    </td>
    <td>
    <form:textarea property="comments" cols="65" rows="3" onkeypress="limitKeyPress(this, 255)"/>
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td colspan="3" class="horizontalLine">
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    </table>
    <table width="700" cellpadding="0" cellspacing="0" border="0" class="bgColor">
    <tr>
    <td class="leadSpacerCell"></td>
    <td class="bodymdbold"><bean:message key='label.item'/>: </td>
    <td><form:text size="15" property="applyId"/>  </td>
    <td class="bodymdbold"><bean:message key='label.quantity'/>: </td>
    <td><form:text size="8" maxlength="8" property="applyQty" />  </td>
    <rsw:display displayElementName="rtv_reason">
    <td style="display:none" class="bodymdbold"><bean:message key='label.inventory_status'/>: </td>
    <td style="display:none">
    <form:select property="selectedInventoryStatus" onchange="selectFromInvStatus();">
    <form:options name="rtvVsatShipmentForm" property="inventoryStatusCodes"
    labelProperty="inventoryStatusDescriptions" />
    </form:select>
    </td>
    <td class="bodymdbold"><bean:message key='label.reason_code'/>: </td>
    <td>
    <select name="applyReasonCode">
    <%-- <logic:iterate name="rtvVsatShipmentForm" property="rtvReasons" id="reason">
    <option value="<bean:write name="reason" property="code"/>">
    <bean:write name="reason" property="description"/>
    </option>
    </logic:iterate>
    --%>
    </select>
    </td>
    </rsw:display>
    </tr>
    <tr>
    <td class="leadSpacerCell"></td>
    <td class=bodymd>
    <a class="genericLink" href="" onClick="handleItemLookup(); return false"><bean:message key='link.item'/></a>
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell"></td>
    <td colspan="9" align="left">
    <br>
    <input type="submit"
    value="<bean:message key='button.apply'/>"
    onClick="handleApply();return false;">  
    <input type="button" value="Clear" onclick="clearFields()";></td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="horizontalWhiteLine" colspan="10"></td>
    </tr>
    </table>
    <table class="bgColor" width="700" cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td><rsw:errors/></td>
    </tr>
    </table>
    <div id="item_list_div">
    </div>
    <table width="700" cellpadding="0" cellspacing="0" border="0" class="bgColor">
    <tr>
    <td class="spacerCell"></td>
    </tr>
    <tr>
    <td>
    <table width="700" cellpadding="0" cellspacing="0" border="0" class="bgColor">
    <tr>
    <td class="bodymdbold" align="right" nowrap><div id="total_amt_div"></div></td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td class="spacerCell"></td>
    </tr>
    <tr>
    <td class="horizontalLine" colspan="3"></td>
    </tr>
    </table>
    <table cellpadding="0" cellspacing="0" border="0" width="700">
    <tr>
    <td class="spacerCell"></td>
    </tr>
    <tr>
    <td class="leadSpacerCell">
    </td>
    <td align="left">
    <input type="button" value="<bean:message key='button.next'/>"
    onclick="next();">
    <input type=button value="<bean:message key='button.back'/>"
    onclick="doBack();">
    <input type=button value="<bean:message key='button.cancel'/>"
    onclick="doSubmit('main', 'main.do');">
    </td>
    </tr>
    </table>
    </form:form>
    <div id="log"></div>
    </body>
    <!-- End of Page Body -->
    <jsp:include page="/elements/bottom_banner2.jsp" flush="true"/>
    <script language="JavaScript" type="text/javascript">
    function handleAction(retVal,position)
    if (retVal != null)
    var command = retVal["command"];
    if (command == "OK")
    updateArray(retVal["id"],
    formatQuantityFromVar(retVal["qty"]), true,
    <rsw:display displayElementName="rtv_reason">
    retVal["inventoryStatusCode"],
    retVal["inventoryStatusName"],
    retVal["reasonCode"],
    retVal["reasonDescription"],
    </rsw:display>
    <rsw:display_false displayElementName="rtv_reason">
    null, null, null, null,
    </rsw:display_false>
    position);
    totalAmounts();
    if (command == "Remove")
    deleteRow(position);
    writeTable(false);
    totalAmounts();
    function showEditWindow(sku, qty,
    <rsw:display displayElementName="rtv_reason">
    inventoryStatusCode, reasonCode,
    </rsw:display>
    position)
    if(!acquireFakeLock()) return;
    var elements = editWindowDiv.document.all;
    elements("editWindowId").value=sku;
    elements("editWindowQty").value = qty;
    <rsw:display displayElementName="rtv_reason">
    elements("editWindowInventoryStatusCode").value = inventoryStatusCode;
    elements("hiddenReasonCode").value = reasonCode;
    </rsw:display>
    var retVal;
    // if (IE6)
    retVal = window.showModalDialog("popup.jsp", editWindowDiv,
    "dialogWidth:335px;dialogHeight:230px;scroll:no;status:no;unadorned:no");
    else
    retVal = window.showModalDialog("javascript:document.write(window.dialogArguments.innerHTML);editWindowInit();",editWindowDiv,
    "dialogWidth:335px;dialogHeight:230px;scroll:no;status:no;unadorned:no");
    handleAction(retVal,position);
         releaseFakeLock();
    function updateArray(itemNumber, itemQty, fromEditWindow,
    inventoryStatusCode, inventoryStatusName,
    reasonCodeId, reasonCodeName, position, supplierCost)
    if (((rtvEntryArray[position].reasonCodeId != reasonCodeId)
    && arrayContainsItem(itemNumber, reasonCodeId))
         ||
         ((rtvEntryArray[position].itemNumber != itemNumber)
         && arrayContainsItemsExceptPos(itemNumber, reasonCodeId, position)))
    deleteRow(position);
    setItemQtyReasonArray(itemNumber, itemQty, reasonCodeId, reasonCodeName, supplierCost);
    else
    var rtvEntry = new Object();
    rtvEntry.itemNumber = itemNumber;
    rtvEntry.itemQty = itemQty;
    rtvEntry.inventoryStatusCode = inventoryStatusCode;
    rtvEntry.inventoryStatusName = inventoryStatusName;
    rtvEntry.reasonCodeId = reasonCodeId;
    rtvEntry.reasonCodeName = reasonCodeName;
    rtvEntry.supplierCost = supplierCost;
    rtvEntry.valid = rtvEntryArray[position].valid;
    rtvEntryArray[position] = rtvEntry;
    writeTable();
    </script>
    <div id="editWindowDiv" style="display:none">
    <html>
    <head>
    <style type="text/css">
    .titleTxt { font-size: 12 ; font-style: italic ; font-weight: bold; color: white ; font-family: arial }
    .bodymd {color: #000000; font-family: arial; font-size: 10pt; text-decoration: none}
    .bodymdbold {color: #000000; font-family: arial; font-size: 10pt; text-decoration: none; font-weight: bold}
    .bgColor { background-color: #efefef }
    </style>
    <title><bean:message key="title.edit_window" /></title>
    <script language="JavaScript">
    function handleOk()
    if (checkQuantityGreaterThenZero(document.editPopupForm.editWindowQty))
    var returnArray = new Array();
    returnArray["id"] = document.editPopupForm.editWindowId.value;
    returnArray["qty"] = document.editPopupForm.editWindowQty.value;
    <rsw:display displayElementName="rtv_reason">
    returnArray["inventoryStatusCode"] = document.editPopupForm.editWindowInventoryStatusCode.options[document.editPopupForm.editWindowInventoryStatusCode.selectedIndex].value;
    returnArray["inventoryStatusName"] = document.editPopupForm.editWindowInventoryStatusCode.options[document.editPopupForm.editWindowInventoryStatusCode.selectedIndex].text;
    returnArray["reasonCode"] = document.editPopupForm.editWindowReasonCode.options[document.editPopupForm.editWindowReasonCode.selectedIndex].value;
    returnArray["reasonDescription"] = document.editPopupForm.editWindowReasonCode.options[document.editPopupForm.editWindowReasonCode.selectedIndex].text;
    </rsw:display>
    returnArray["command"] = "OK";
    window.returnValue = returnArray;
    window.close();
    function handleCancel()
    window.close();
    function handleRemove()
    var returnArray = new Array();
    returnArray["command"] = "Remove";
    window.returnValue = returnArray;
    window.close();
    function init()
    document.title = "<bean:message key="title.edit_window" />";
    document.editPopupForm.editWindowQty.focus();
    <rsw:display displayElementName="rtv_reason">
    createReasonOptionObjects();
    setReasonOptions();
    document.editPopupForm.editWindowReasonCode.value = document.editPopupForm.hiddenReasonCode.value;
    </rsw:display>
    <rsw:display displayElementName="rtv_reason">
    function setReasonOptions()
    var currentOptions;
    document.editPopupForm.editWindowReasonCode.options.length = 0;
    if (document.editPopupForm.editWindowInventoryStatusCode.value == "AVAILABLE")
    currentOptions = availableOptions;
    else
    currentOptions = unavailableOptions;
    for (var i = 0; i < currentOptions.length; i++)
    document.editPopupForm.editWindowReasonCode.options.add(currentOptions[i]);
    </rsw:display>
    var availableOptions = new Array();
    var unavailableOptions = new Array();
    <rsw:display displayElementName="rtv_reason">
    function createReasonOptionObjects()
    var oOption;
    <logic:iterate name="rtvVsatShipmentForm" property="availableInventoryStatusReasons" id="reason">
    oOption = document.createElement("OPTION");
    oOption.value = "<bean:write name="reason" property="code"/>";
    oOption.text = "<bean:write name="reason" property="description"/>";
    availableOptions[availableOptions.length] = oOption;
    </logic:iterate>
    <logic:iterate name="rtvVsatShipmentForm" property="unavailableInventoryStatusReasons" id="reason">
    oOption = document.createElement("OPTION");
    oOption.value = "<bean:write name="reason" property="code"/>";
    oOption.text = "<bean:write name="reason" property="description"/>";
    unavailableOptions[unavailableOptions.length] = oOption;
    </logic:iterate>
    </rsw:display>
    </script>
    <%@ include file="rsw_functions.jsp" %>
    </head>
    <body leftmargin="0" topmargin="0" style="border:4px ridge lightgrey">
    <span style="margin-top:0;margin-left:0,margin-bottom:0;margin-right:0">
    <table cellspacing="0" cellpadding="0" border="0" bordercolor="#000000" width="330">
    <tr>
    <td bgcolor="#ff9999" width="100%" height="1" colspan="2"></td>
    </tr>
    <tr>
    <td bgcolor="#ff0000" height="15" align="left"><span
    class=titleTxt>  <bean:message key="label.edit" /> </span></td>
    <td bgcolor="#ff0000" height="15" align="right"><span
    class="titleTxt"><bean:message key="label.application_title" />   </span></td>
    </tr>
    <tr>
    <td bgcolor="#000000" width="100%" height="1" colspan="2"></td>
    </tr>
    </table>
    </span>
    <form name="editPopupForm" style="margin-top:0;margin-left:0,margin-bottom:0;margin-right:0"
    onsubmit="handleOk();return false;">
    <input type="hidden" name="editWindowPosition" value="">
    <input type="hidden" name="hiddenReasonCode" value="">
    <table cellspacing='0' class='bgColor' cellpadding='0' border='0' width='330'>
    <tr><td> </td></tr>
    <tr>
    <td class='bodymd'>  <bean:message key='label.item'/>:</td>
    <td class='bodymd'><input type="text" name="editWindowId" value="[id]" ></td>
    </tr>
    <tr>
    <!--Start RQST 34502 SIR 61007-->
    <!--td class='bodymd'--><!--  --><!--bean:message key='label.count_quantity'/--><!--:--><!--/td-->
    <td class='bodymd'>  <bean:message key='label.return_quantity'/>:</td>
    <!--End RQST 34502 SIR 61007-->
    <td class='bodymd'><input type="text" maxlength="8" name="editWindowQty" value="[qty]"></td>
    </tr>
    <rsw:display displayElementName="rtv_reason">
    <tr>
    <td style="display:none" class='bodymd'>  <bean:message key='label.inventory_status'/>:</td>
    <td style="display:none" class='bodymd'><select name="editWindowInventoryStatusCode" onchange="setReasonOptions();">
    <option value="AVAILABLE"><bean:message key="label.available"/></option>
    <option value="UNAVAILABLE"><bean:message key="label.unavailable"/></option>
    </select></td>
    </tr>
    <tr>
    <td class='bodymd'>  <bean:message key='label.reason_code'/>:</td>
    <td class='bodymd'><select name="editWindowReasonCode">
    <logic:iterate name="rtvVsatShipmentForm" property="rtvReasons" id="editWindowReason">
    <option value="<bean:write name="editWindowReason" property="code"/>">
    <bean:write name="editWindowReason"

    God Lord! Does anyone else here write JSPs that look like that?
    If I had to maintain that I would shoot myself straight in the temple.
    Sorry, I don't have answer to your question, I just had to say that.
    Do you like your job?

  • Quicktime takes a lot of time to open after last Quicktime or iTunes update

    I have actually no big problems, but its a bit annoying that Quicktime Player takes a lot of time (maybe twice as before) for opening a Quicktime file (mp3 or video file, it doesnt matter).. I think this situation arised after the last Quicktime update or the update before this I dont know for sure. I think the last Quicktime update.. I am using the latest Quicktime which is 7.6 and its Tiger (10.4.11). When Quicktime Player is not opened, and its getting opened for the first time by clicking for instance on a mp3 file, it takes more then 10 seconds to open up, when I click the file Quicktime Player bounces normally as always but then the spinning rainbow beachball is shown for more then 10 seconds before the player window appears. There is no delay when I go open a mp3 from another mp3. The delay occurs only when Quicktime Player is not opened yet (quit/closed) and you click on a Quicktime file then the delay happens during the opening of the player.. Sometimes it doesnt even open the file I clicked, but only Quicktime Player so I have to click the same file again..
    What I tried is :
    deleted all Quicktime player preference files.. Didnt help
    removed all plugins from the Quicktime library.. Didnt help either
    What could the problem possibly be? What can I do to recover it except for installing my system all over again? Will Apple fix this problem with the next update?
    PS: I dont exclude that the latest iTunes update (8.1) can be a cause of this problem. Do you know if the iTunes update also changed/updated something regards Quicktime (Player)?

    Why is an Archive & Install not an option for you? It does NOT delete your applications or your settings, and is NOT the same as an Erase & Install which does.
    In my opinion it will be the only way to get your old G3 working properly again.
    How to Archive & Install:
    http://docs.info.apple.com/article.html?artnum=107120
    This document explains how to correctly reinstall a prior version of Mac OS X in the event that other troubleshooting does not resolve an issue:
    http://docs.info.apple.com/article.html?artnum=25404
    BUT: Don't install older versions of Mac OS than what comes with your computer:
    http://support.apple.com/kb/HT2186?viewlocale=en_US
    Will Apple fix this problem with the next update?
    For 99.9% of users there is no problem to fix.
    But before doing your archive and install, when did you last perform a bit of maintenance?
    Repairing permissions is important, and should always be carried out both before and after any software installation or update.
    Go to Disk Utility (this is in your Utilities Folder in your Application folder) and click on the icon of your hard disk (not the one with all the numbers).
    In First Aid, click on Repair Permissions.
    This only takes a minute or two in Tiger, but much longer in Leopard.
    Background information here:
    http://docs.info.apple.com/article.html?artnum=25751
    and here:
    http://docs.info.apple.com/article.html?artnum=302672
    An article on troubleshooting Permissions can be found here:
    http://support.apple.com/kb/HT2963
    By the way, you can ignore any messages about SUID or ACL file permissions, as explained here:
    http://support.apple.com/kb/TS1448?viewlocale=en_US
    If you were having any serious problems with your Mac you might as well complete the exercise by repairing your hard disk as well. You cannot do this from the same start-up disk. Reboot from your install disk (holding down the C key). Once it opens, select your language, and then go to Disk Utility from the Utilities menu. Select your hard disk as before and click Repair.
    Once that is complete reboot again from your usual start-up disk.
    More useful reading here:
    Resolve startup issues and perform disk maintenance with Disk Utility and fsck
    http://support.apple.com/kb/TS1417?viewlocale=en_US

  • Minus takes a lot of time

    Hi all,
    My problem is as follows.
    I made a mapping that in less then a minute populated on of my tables. Then I change it to, before inserting, make a minus with target table, it works fine and takes almost the same time to populate the table, except when the target table is empty, in this case it takes four hours.
    If I take the minus it runes ok!
    What could be the problem?
    Owb 9.2
    Oracle database 9.2
    Thanks,
    Vitor.

    I have a splitter control that makes some records to be inserted in a table and some other's to be updated (complex condition to update needed), after the splitter on the flow that will insert i'm making a Minus between this records and the target table (selection MINUS target). When target table is empty it takes a lot of time.
    I edited the mapping PL/SQL and try to execute the cursor created to this same flow and it takes the same time. I guess my problem is that the original select is made just for the records that doesn't exist in target table (that's for insert, uses all record's for update). When the target table has most of the records it will select few on the source (to insert) and minus run much faster.
    What is odd is that just Original select goes in a few seconds and the minus takes all the time, but i just got 20000 records with 4 small columns, two of them numbers. And target table is empty!!!
    I have made several other MINUS instruction in some other databases much more heavy to the system and worked real fast.
    Could it be database configuration?
    Thanks,
    Vitor

  • Import process takes a lot of time to connect to schemas in the RPD

    Hi Gurus,
    I am facing this problem where when I start to import tables from my database into the rpd, it takes hours to load/display the schemas. Once I select tables, the import process takes another hour.
    Does this look like a setting issue on OBIEE end or database connectivity? I can connect to the database through SQL developer within seconds with the same credentials. Its eating a lot into my dev time. Please suggest at the earliest. Much appreciated.
    Thanks,
    Dan

    tried it. It keeps saying connection failed. My problem is my connection is fine. I can connect without the localhost:port/sid. The next step of choosing Tables,views.. that screen too loads within a second. Once I hit next on that screen, it takes a lot of time for my schema to show up.
    My setup here is I hv downloaded the admin tool only, created a dsn connection and trying to import tables in online mode. All connections work fine but they take a lot of time.
    I just need to validate if its a database connecticity issue or obiee connectivity.

  • Select of database takes a lot of time

    Dear all,
    myabe its a simple question but it is not for me. I do select the FAGLFLEXA table (standard table) and it takes a lot of time.
    here my selection:
    select * from faglflexa into table gt_flexa
       where    docnr  in   s_belnr
        and     rbukrs eq   p_bukrs
        and     ryear  eq   p_gjahr.
    Maybe its better to select all keyfields YES it is, but I need all data of the selected data . Now my question is: It is also possible to active a indices for this standard table ? when yes how it is the best way to do this ?
    best regards
    Moderator message: this has been discussed many times, please search in the ABAP performance sub-forum.
    Please Read before Posting in the Performance and Tuning Forum
    locked by: Thomas Zloch on Aug 12, 2010 3:13 PM

    Of course you can add an index - the best fields depends on your WHERE clause and field usage.  How broad is the doc number selection?  Have you traced the selection?  It doesn't really make sense that you'd need a secondary index with those fields unless you're not using the DOCNR specification or it's very broad.

  • New ImageIcon(path) takes a lot of time

    Hi.
    I do "new ImageIcon(path)" in while loop (the path is changes) and it takes a lot of time, why? It happens only when the path is different.
    If the path will be always the same it work good and quick
    Thnaks in advance.

    You're right that the preloading will also take time, but it will attempt to load all the images asynchronously. Several images may be loaded simultaneously, thereby shortening the overall time taken.
    // Start the images loading
    Image[] images = new Image[paths.length];
    for(int idx = 0; idx < paths.length; idx++) {
      images[idx] = Toolkit.getDefaultToolkit().getImage(paths[idx]);
    // Images might not have been loaded at this point - but are loading in the background
    // Create icons for our images
    for(int idx = 0; idx < images.length; idx++) {
      // This will wait for the image to finish loading but the other images will continue to load at the same time
      icons[idx] = new ImageIcon(images[idx]);
    }While the first icon is waiting for its image to finish loading the other images may also be getting downloaded, thereby shortening the time taken for the operation.
    There's no guarantee this will be any faster since the image loading could be bottlenecked elsewhere (such as on your file system) but it may be worth a try.
    Hope this helps.

Maybe you are looking for

  • Problem with Date

    I have problem with the date fields, in fact when i want to update or insert a date in a datefield i get this message For input string: "oct." I'am using Jdeveloper 10.1.2.1.0 (build 1913) and JHeadstart 10.1.2.0 (build 19) My Regional parameters are

  • Unable to edit dng metadata in 3. party software

    Dear sirs. I am trying to use Picasa (3.9) face detection feature to update all my photos metadata. It works fine with jpg, byt changes are not/cannot be stored in dng files. I hope thats a bug that will be fixed asap.. (?) I am using windows 7(64 bi

  • HT4061 Syncing iPad to iTunes on a PC

    I am trying to sync my new ipad with my itunes music library.  I have followed the directions given, but when I connect the ipad to my PC, with itunes open, there is no "Device" listed in the summary section of itunes.  Also, when I connect I get an

  • Favourite file manager and why

    What's everyone's favourite file manager, and why? I'm using XFE in Openbox atm, and am impressed, but wonder if there's somthing else out there that's easier to customize/faster/has a better interface. Your thoughts?

  • Count number of rows in table

    Hi! 1. How can you through ABAP and select statements count the number of rows in one table? 2. I want to read all rows from one table to an internal table. Can this be done dynamically or do I first have to count the number of rows in the table and