Looking for clarification on network latency issue vs drive mapping

Hi,
I am seeing this as mystery and not getting crystal clear idea on the reason for the issue. Issue is related to the performance of the application interms of time it is taking in processing the input file.
I wrote a swing application, which is a client application. Which takes some parameters like server name and iphostaddress and connects to the Process Server which is, responsible for processing client application requests. Client application will communicate with process server through TCP/IP connection and process the input file and returns the decisions back to the user through the output file.
Below is the scenarios I am using for launching the application:
1. If both client application and server are running locally in my desktop the time it is taking to process the input file is 2 minutes.
2. If client is running my application and server is running remotely on wondows server, it's taking 13 minutes to process same input file.
3. To reduce the time in scenario2, I installed the client appliation also on the remote server ( so that both client and server application are running on the windows server). and mapped the server's share drive to my desktop. And launched the application from my desktop (from U drive, where application is mapped), now it's taking 10 minutes to process the same input file.
I am struggling in understanding why it's taking that long in scenario 3. Because application is installed locally on the server and input file and output files also copied onto the U drive. Sometimes thinking am I launching the application in the right way or not?
Can somebody explain me, if we launch the remote java application through drive mapping will there be network latency there eventhough everything is there on the server (U drive)? Here I need to tell one more scenario 4, If loginto the remote windows server and launch the client application time it's taking to process the same input file is about a minute.
Below are some more details on the issue: I am not encoding the file, I am using third party application, which provides an API to communicate with the process server. Just using the API methods and classes to pass the input file data to server. I have used the 'tracert' command for the remote server and I am seeing 8 hops between my desktop and remote server. I even installed network sniffer tool in my laptop and captured the files when application running.
The input file has 140000 records (text lines with comma delimited) of 6.271MB in size. I have posted to understand the time it is taking in scenario3, where evrything is on mapped drive (i.e, client application and input file are technically recides on the server right?) , but client application is launched from desktop. The reason I am doing this way is, instead of log-in into the remote server, user can easily launch the application from the desktop. So, when I try to launch the application this way, this doesn't count as if client application is running local to the server? Will it becomes remote (I have even captured the network traffic file in this scenario too, and I have seen the comminication between my desktop ip address to server ip address and server is taking abour 3.84 milliseconds for each item to respond to client, I think it's just travel time not the process time). I am assuming, even when application launched from drive that is mapped, it should take about 1 minute (the time taking when I launch the aplication after log-into the server,not through drive mapping) to prcess input file as everything is on the server.
Thanks in advance,
Jyothi

reading and writing the data shouldn't be the problem, its what you are doing with the data which will be taking all the time.
Try this
public class WriteFile {
    public static void main(String... args) throws IOException {
        String filename = "record.csv";
        int records = 140 * 1000;
        int values = 6;
            long start = System.nanoTime();
            PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(filename)));
            for (int r = 0; r < records; r++) {
                for (int i = 0; i < values; i++) {
                    if (i > 0)
                        pw.print(',');
                    pw.print(r * 10 + i);
                pw.println();
            pw.close();
            long time = System.nanoTime() - start;
            System.out.printf("Time to write %,d records was %.3f sec. file size=%.3fMB%n",
                    records, time / 1e9, new File(filename).length() / 1e6);
            long start = System.nanoTime();
            BufferedReader br = new BufferedReader(new FileReader(filename));
            String line;
            while ((line = br.readLine()) != null) {
                // do some work.
                String[] parts = line.split(",");
                int[] nums = new int[parts.length];
                for (int i = 0; i < parts.length; i++)
                    nums[i] = Integer.parseInt(parts);
br.close();
long time = System.nanoTime() - start;
System.out.printf("Time to read %,d records was %.3f sec%n",
records, time / 1e9);
PrintsTime to write 140,000 records was 0.462 sec. file size=6.193MB
Time to read 140,000 records was 0.792 sec

Similar Messages

  • I just received a new macbook pro. I am looking for a usb3 external storage 500 GB drive.  Some manufacturers of drives aren't for sure their drive will work with the new lion system. Does anybody have any suggestions for drives that will workw

    I just received a new macbook pro. I am looking for a usb3 external storage 500 GB drive.  Some manufacturers of drives aren't for sure their drive will work with the new  system. Does anybody have any suggestions for drives that will workw

    There seems to be a problem, just now, with the USB 3 ports on the new MBP's supporting eternal USB 3 drives. Some people have no luck at all - can't even recognize the drive - and some are reporting USB 2 speeds (those who drives are recognized). I'd call a dealer such as LaCie or OWC to see if they have USB 3 drives that actually work with MBP's with USB 3 ports. You may have to wait for a software/firmware update.
    Clinton

  • My itunes seems to be looking for my library on my computer C drive,  rather than my external drive ( originally set up to as default ).  How do I re-set itunes to look for my library on the external drive ?

    Suddenly, after a year of good operation,  my itunes seems to be looking for my library on my computer C drive, rather than the external drive it had been set up to as default   How do I get it to search for the stored library on the external drive again ?

    Quit iTunes.
    On the external drive;
    1 - Create new folder called iTunes (or whatever you want).
    2 - Move your music folder into this.
    3 - Go to the the C: drive iTunes folder.
    4 - Copy the iTunes library.itl file into the iTunes folder on the external drive.
    5 - Start iTunes holding the Shift key.
    6 - Select Choose existing library and select the iTunes library.itl file you just copied to the external.

  • Looking for best wireless Network Adapter for my PowerMac G5

    Dual 2.3 GHz PowerMac G5 (PowerMac11,2)
    5.5GBs DDR2 SDRAM
    Leopard 10.5
    Before the local Mac Store upgraded me from Tiger To Leopard I was using a Hawking Technology HWUG1A Wireless Adapter. It was clunky and the software crashed me now and then. Now that I'm on 10.5 the Hawking Tech. software  crashed me every time it tried to connect to the router. I uninstalled it using AppCleaner, then reinstalled the Hawking 'Leopard version' of the software/firmware, still crashing me.
    There support says "it should work" which I could still pursue getting it to work correctly, but I want to move on since I've never been happy with the product and don't want to risk wasting to much time incase it is simply not going to work.
    It seems I have some PCI(e) slots (whatever is in the PowerMac) available on this mac, can it take a wireless network card? That would be much better than a USB doogle. Anyway, I'm looking for a reliable solution for connecting my PowerMac G5 to my router without using cables. Can you please recommend a product if you know of one?
    Thanks for your time!
    -Monty

    Hi Monty,
    These USB Wifi adapters work great...
    http://eshop.macsales.com/search/usb+wifi
    I don't see any PCIe Wifi cards, just PCI.

  • Looking for Tiger compatable network logging tool/program

    I have a client that has become email blacklisted. They are hosting their own email server on a Mac OS X server. However some of the clients in the building are PC. Not sure if someone is using them as relay or they have a zombie PC.
    Looking for a program we can run on a Mac at the MOPE of the internet connection and log incomming and outgoing traffic. We want to determine whats going on. Anyone have a reccomendation? I looked at Net Monitor, but its logs look to vague. Only showing IP address and a connection, not whats going on with that connection. We are looking for something like Net Monitor but with packet sniffing I guess. Anyone ?

    I've been blacklisted twice by Spamcop...
    http://www.spamcop.net/bl.shtml
    http://discussions.apple.com/search.jspa?threadID=&q=spamcop&objID=&dateRange=la styear&userID=BDAqua&numResults=15
    I assure you that I've not spammed once, nor are any of my machines compromised, never "used" for spamming... either the IP was Spoofed, or the fact that I didn't have a Static IP, means that IP was garnered by someone that was spamming or compromised.
    If they are Macs, Little Snitch tells you when a program tries to send info to the internet so you can see what's going on in the background!
    http://www.obdev.at/products/littlesnitch/index.html
    If there are PCs involved, 40% chance it's infected I read!

  • Looking for All on one with USB Flash Drive Print/Scan support

    I am looking for an All in One Print/scan/copy. It should support print from USB Flash drive and scan to the same.
    Thanks

    Hi,
    You may check the HP Officejet 6600/6700 models which support USB Flash drivers.
    You may find the flash driver specifications listed within the Memory Device specifications below:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03058896&cc=us&dlc=en&lang=en&lc=en&product=505...
    As well you may check the HP Officejet 8600 Series which supports both USB Flash Driver and Memory cards, its specifications can be located below:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02858465&cc=us&dlc=en&lang=en&lc=en&product=432...
    Both of the products above provide Print, Scan, Copy and Fax functionality.
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Looking for Bug description 3133645 in JDBC-Thin-Driver

    Looking for Description of Bug Number 3133645. An error "Sorry, this page was not found" occurs, when calling this page.

    Well actually...
    If the "prepareStatement()" invocation worked, but the "execute()" invocation failed (which matches the situation you have described in your original post), then the "PreparedStatement" would, most definitely, not be null, and the "close()" method (as per my sample code) would, most definitely, be executed.
    So I still get the impression that you are probably not closing your "Statement" instances (in cases where an error is occurring).
    Also, in my experience with Oracle's "thin" JDBC driver (i.e. the "classes12.zip" file), closing a "Connection" does not close any "Statement"s associated with it -- "Statement"s need to be explicitly closed.
    Perhaps you need to check your code again -- or post your actual production code for a third-party to scrutinize.
    Good Luck,
    Avi.

  • Looking for HP/Agilent MW Receiver 8530A IVI driver?

    I am looking for IVI or CVI drivers for HP/Agilent MW receiver with GPIB interface.

    Check out agilent's web site and if no dice there, try the NI developer
    zone. They have a fair library of drivers available there.
    "nejads" wrote in message
    news:[email protected]..
    > I am looking for IVI or CVI drivers for HP/Agilent MW receiver with
    > GPIB interface.

  • Font Issues, Looking for clarification

    Good Morning,
    I am trying to insert pages into a manual. The pages I am inserting are CAD drawings that were created with AutoCAD Civil 3D and printed to pdf.
    1) Drawing #1.pdf
    2) Drawing #2.pdf
    Sometimes when I add the drawings to a new pdf using the insert command, the fonts mess up and show little squares instead of a random letter, such as f or ".
    There are about 100 drawings to insert. Can anyone explain what is going on here? Or some settings to check? I thought PDF was supposed to be portable document format.
    I have tried a few things such as:
    #1 Embed font, #2 Non-embedded font, this makes squares.
    #1 Embed font, #2 Embed font, this does not make squares. (Font is the same, ArialMT)

    I was hoping to avoid having to reprint all the drawings, in the future I'm going to embed fonts in anything I do to prevent this from happening again. It is frustrating as you will be inserting drawings (from other users) and everything looks good. Then when you insert the 99th drawing, it messes up 30% of the previous drawings fonts.
    Anyway thanks for the input.
    -JK

  • Assignment Help - Again looking for clarification only

    Hi All,
    I'm again having some trouble with the second half of an assignment. I had it all working on my computer and it was working without any problems.
    Now when I upload to the CSE servers and test I get some some weird errors that I cant track down.
    Basically this assignment was to implement a tiny bank system with the ability to deposit, withdraw and transfer. These transactions were read from a file and processed concurrently.
    I am having serious issues where it seems like threads just disappear and the stack trace never seems to go all the way down. Instead always throwing a java.lang.NullPointerException in different random Threads about halfway down where I would expect it.
    Does anyone have any suggestions to what may be causing it??
    As it is an assignment I cannot really post any code but any help would be greatly appreciated.
    Cheers,
    Chris

    Does anyone have any suggestions to what may be causing it??There is only one reason for a null pointer exception - something is null.
    The stack trace will tell you the exact line that the null pointer is showing up on.
    As a wild guess you are using threading a sychronization and expecting something to occur or not occur without considering how threads actually run.

  • Looking for clarification

    I am relatively new to the Mac environment. Thanks to many if you, I have completed my first FCEHD Project.
    I have a question about HandBrake and Streamclip. I hear these programs mentioned and am curious what they are, or in what instances would they be used? I know Handbrake is for ripping DVD, and Streamclip is for conversion? I have MactheRipper, is there a major difference between Handbrake and MTR?
    Any clarification would be helpful.

    You can use HandBrake to turn DVD files into mpeg4 that you can put straight into iMovie and possibly FCE. If it won't go straight into FCE, put it in iMovie and then export to FCE.
    mpeg4 files are possibly not as high quality as mpeg2.
    mpeg2 files can be produced by Streamclip and ffmpegX.
    However if you want to use Streamclip you will have to buy an item whose name I can't remember but costs around £15 ($20+).
    ffmpegX is complete. It is Shareware so you can test it out free of charge but if you intend to use it frequently they would like you to register it for around $15.
    I suggest you experiment with HandBrake first as it is the easiest to use and is completely free.
    A similar program is OpenShiiva which is very good and equally simple to use:-
    http://openshiiva.sourceforge.net/
    Hope this is of some use.
    Ian.
    PS If I remember correctly, the mpeg4s from HandBrake and OpenShiiva take a very long time to render in FCE before you can use them. I think they are a lot quicker in iMovie.

  • The name of my home network changed, now I cannot sync my ipad as it is looking for the old network name, can I change this?, the name of my home network changed, now I cannot sync my ipad as it is looking for the old network name, can I change this?

    The wifi sync button is greyed out and it says that I will be able to sync once connected to <previous network name>
    How can I change the default network I use?

    go to,
    Settings > Wi-Fi > select your new network name and join the network (by entering the password for it)
    you should now be on your new network
    For completeness, you could delete your old network by,
    Settings > Wi-Fi > click on your old network name > Forget Network
    I hope that this fixes things for you.

  • Looking for clarification on ADF 12.1.2 WLS support

    What versions of WLS supports ADF 12.1.2? If there is support for 11g, are there any documentation on how to install the ADF 12 Runtime?
    Oracle JDeveloper 12c Support&lt;/title&gt;&lt;meta name=&quot;Title&quot; content=&quot;Oracle JDeveloper 12c Support&q…
    Application Servers
    The following table shows application servers supported by JDeveloper and ADF. Application Server support for JDeveloper is provided for connecting and deploying directly to the server as well as debugging. For ADF, it refers to servers that ADF applications can be deployed to.
    Application Server
    JDeveloper
    ADF
    Oracle Fusion Middleware (WLS)
    10.3.5+, 12.1.2
    12.1.2
    GlassFish
    3.1+
    3.1 (ADF Essentials)
    WebSphere
    8.x
    JBoss
    5
    Tomcat
    7
    Oracle Cloud
    13.1

    I'm not hearing any oracle responses, thus I can only assume what Timo said is the closest to that fact.
    Here is what I know about what a production ready standalone WLS 12c with ADF Runtime 12.1.2 entails:
    -a domain running on WLS 12.1.2 needs JRF & Coherence to be installed in order to run ADF 12.1.2 https://forums.oracle.com/thread/2559381
    -JRF & Coherence on WLS 12.1.2 needs a RCU database repository JDeveloper 12c & Standalone WLS w/ADF Runtime 12.1.2
    -WLS 12.1.2 is only certified to run on Oracle DB 11.1.0.7+ http://www.oracle.com/technetwork/middleware/ias/downloads/wls-1211x-certmatrix-1395408.xls
    Does that sound about right?
    I hope I'm wrong and someone can guide me to easier setup. It seems that getting a standalone WLS server to run ADF has gotten harder with every new release!
    I can get a standalone WLS 10.3.5 up with ADF 11.1.2.4 in ~3mins
    http://www.youtube.com/watch?v=TG6wqrFVY00
    WLS 10.3.6 with ADF 11.1.2.4 requires 2 additional console applied patches ontop of the 11.1.1.6 runtime installer. (Corrected from false version of 11.1.1.7)
    WLS 12.1.2 with ADF 12.1.2 - I have not attempted but it seems to be even more involved than the previous.

  • Looking for clarification about cc on two computers

    I've done a bit of googling but seem to find conflicting statements and a lack of detail.
    cc has made the software a more approachable price for students but whether I can justify making it my main software depends on how I can use it on my two computers.
    basically, I need to have the same programs installed on both computers, and I may need to be running one program on one computer at the same time as another program on the other computer.
    e.g. I'd have all of photoshop, lightroom, premiere and after effects installed on each computer, and there may be times where I'd want to have photoshop running on one at the same time as running after effects on the other.
    is this possible?

    Hi j bg,
    I would like to inform you that you can install Adobe Creative Cloud on two machine, However, you can not use both the software at the same time.
    Please refer: General-terms
    Thanks,
    Atul Saini

  • Looking for history of JRE security issues

    I'm trying to find out what security vulnerabilities have been found in previous versions of JRE. Anyone have a resource?

    Interesting question.
    Older stuff is supposed to be here.
    [http://java.sun.com/products/archive/]
    I would suppose that the documentation would provide whatever was documented, which as you go further back is going to be less clear.
    At the above I see docs for 1.4 and even 1.1 but not for 1.5. But the jdk download would have some docs in it which might have links to the relevent docs.

Maybe you are looking for

  • Where should I be able to see my Gamers Club Unlocked?

    I bought Gamer Club Unlocked about over 2 weeks ago and I still have not seen it appear in my account rewards overview page. It shows that I got the points for purchasing it but it does not display me as a member. Did I not get fully registered? I di

  • Create Excel/Word Files on UNIX ?

    Hello Everyone, What are my options (including products) for creating Excel/Word files on UNIX/Linux (no OLE) using ABAP ? Thank you

  • R/3 report of transactions with trading partner

    Hi I posted intercompany transaction (using trading partner). I need to know if there is any tcode for R/3 report which will show transactions with trading partners. I require for AR AP GL transactions. I came to know that there is some tcode which w

  • How to pass a value to a component

    In the following file I want to click on a button and send a value to a component. I want that value to change for different buttons but I cannot use the instance name to send that information and I also cannot use a method of tIe class. I tried inst

  • Personalization in iproc page

    Hi All, We have requirement to personalization the iproc page. When a requisition is created and goes for approval. And the approver wants to make any changes on the requisition he will hit link 'Edit Requisition'. The changes we want to make is to c