Search Results

Search found 4 results on 1 pages for 'adrian7'.

Page 1/1 | 1 

  • First request too slow even if I have a load balancer in the back

    - by adrian7
    I have an Apache 2 on Centos + bind with a wordpress website on it (e.g example.com). I have also set up, on another server in a different contry a load balancer (varnish:80 + nginx 127.0.0.1:8080) for it - which task is to server all static content under /wp-content/. Using Simple DNS editor I added an A entry to cdn.example.com pointing to the server's IP. So no extra work from a 2nd dns server. Then using htaccess I redirect all requests to jpg|gif|css|js files to cdn.example.com. That works and all files are saved on the "cdn" server and served right away. My problem is that for the first time I enter on example.com (e.g after restarting the computer or closing the browser) the load time is 1 up to 3 seconds, while any subsequent page loads take only 300 to 600 miliseconds. I know it might be a DNS issue, but I have done a cache check on several websites and cdn.example.com indicates the right IP. Do you have any ideas where I should dig to solve this first-time slowness?

    Read the article

  • Java: Selected rows's index does not changes when I sort them!

    - by adrian7
    Hello, I have a Jtable on which I called the method table1.setAutoCreateRowSorter(true);. So this works on well. But I also have a methos in my JFrame class which is fired when i push a button. It gets the selected rows indexes using this code int selectedRows[] = this.table1.getSelectedRows();. And displays an edit window for the first row corresponding in the selected interval. The problem is that if I don't click on column's headers (I mean i don't sorte them at all) my method works perfect. But when I sort the row, the indexes of the rows doesn't seems to change at all - thus resulting an edit window for the old row whicn was initially in that position before making any sort. I am using JDK 6 could anyonw give ma a tip?

    Read the article

  • I can't change a value, for a web service using an axiom client!

    - by adrian7
    Hi.I just started learning about web serices. I succesfuly installed Tomcat, and deployed axis2 on it. I followed the tutorial from here http://ws.apache.org/axis2/1_1_1/quickstartguide.html . I made the StockQuoteService web service, moved the .aar file in the WEB-INF/services folder and tested it - it worked all fine. Then I made a client for the servce. I took the source code of the file AXIOMClient.java from the dir described here http://ws.apache.org/axis2/1_1_1/quickstartguide.html#clientaxiom , imported the classes in Eclipse Java IDE and runned it. I tested and the update method works from the browser when calling http://localhost:8080/axis2/services/StockQuoteService/update?symbol=WSO&price=144 But from my java client update method is not working at all, when calling getPrice I always receive 42.00. What am I doing wrong? or, how can I trace what is happening?

    Read the article

  • Is there a way to listen for changes in an MySQL database table using Java and JDBC?

    - by adrian7
    I have a number of users which are logged in at a time in my desktop application. They are working on the same table (create, read, update, delete data) so I have to update their views, to reflect changes, every few seconds - currently I am thinking to use a different thread to do that. I am using the MySQL database engine. Is there a way, using JDBC, to listen for changes on a specific table in the database and triggering a Java method only when changes are made?

    Read the article

1