Why jsc+Ejb Slow as a snail ?

Hi All,
In jsc, I get the DTO data from Ejb's method into datatable,only has 500 rows, displaying need 90 seconds, after modified by user , transfer the dto to Ejb's method for saving, need 120-150 seconds.
I am about to collapse !
Help me,Thanks a lot!
Smile

Your question can be tricky. I assume that you are using Java Studio Creator 2.1 with J2EE 1.4 EJBs.
A common pattern is to use an EJB Session Bean's remote method as a facade for an CMP EJB Entity Bean. If you are using this schema to build your 500 DTO list, then you are having the overhead of having many SELECT statements issued against your database. Anyway, for a 500 row result it should not take that time, unless you have more complex logic associated to your EJBs, or your hardware is not able to handle the load of the J2EE Application Server.
If you're expecting to have large results of this EJB Session remote method, is best to replace an CMP-Entity-EJB finder method for a direct JDBC call to improve performance. If you are using BMP EJBs, then you can add a business method with a JDBC call. Also, try to save your result list in your presentation layer (maybe a session bean) to avoid the execution of the remote method each time your table changes, is paginated or gets updated.
Best regards.
Antonio.

Similar Messages

  • Slow as a snail Time Capsule - suggestions please?

    I have been using a 1Tb Time Capsule for backing up about 600 Gb of mainly image information along with my main HD for a year or so without any major problems. The drive was full a long time ago but (as I understood it) when new material comes along the oldest backup info is deleted automatically. Yesterday for some reason (after a major Lightroom reshuffle) the backup routine stopped with a message saying "Your backup requires 300 Gb of space but you only have 250 GB (or along those lines).
    In the end I erased all on the TC and started again. No problem except the transfer speed has slowed to a snail's pace. Calculating the speed at the moment it will take over 24 hours to backup 490 Gb. Is this correct? The TC is connected by regular ethernet cable, I have a MacPro 2 x 2.66 with 8Gb RAM and 3 internal hard drives. How can I speed up this process? Would I be better off with regular external hard drives connected by firewire?
    How come I can download a Compact Flash card of 8 Gb in about 5 minutes and it takes half an hour or so fo the equivalent amount of data to backup on the TC? Thank you.

    Colin Cadle wrote:
    In the end I erased all on the TC and started again. No problem except the transfer speed has slowed to a snail's pace. Calculating the speed at the moment it will take over 24 hours to backup 490 Gb. Is this correct? The TC is connected by regular ethernet cable
    Roughly, yes. It varies greatly, of course, and the first part of a full backup is considerably slower (since the Applications and System folders are the first to be backed-up, and contain hundreds of thousands of mostly very small files). But overall you should get, very roughly, 20-24 GB/hour via Ethernet.
    There are a couple of things you can do that might speed it up. See #D2 in [Time Machine - Troubleshooting|http://web.me.com/pondini/Time_Machine/Troubleshooting.html] (or use the link in *User Tips* at the top of the +Time Machine+ forum).
    Would I be better off with regular external hard drives connected by firewire?
    Oh, yes! With F/W 400 expect roughly 50-55 GB/hour overall; F/W 800 80-85 GB/hour. For a laptop, the convenience of wireless backups is great, but for a desktop, it's a real drag, pardon the pun.
    How come I can download a Compact Flash card of 8 Gb in about 5 minutes and it takes half an hour or so fo the equivalent amount of data to backup on the TC? Thank you.
    There's a lot more to be done with a Time Machine backup than just copying files. They have a very complex structure, with things extensively linked together so Time Machine can do it's "magic" of only backing-up what's changed, but having each backup be a full one.

  • What is cookies.sqlite and why does it slow the start up of mozilla by a minute or so. I found it and deleted it,fixed the problem, but it reappears eveery time I restart mozilla.

    what is cookies.sqlite and why does it slow the start up of mozilla by a minute or so. I found it and deleted it,fixed the problem, but it reappears every time I restart mozilla.

    AVG reports these sqlite cookies each time firefox starts. they usually belong to tribalfusion or some other tracker. How do I block them in the first place. I thought firefox is a safe browser. Did not have this problem until I upgraded to 3.6.

  • Why is java slower than C and C++

    Hi Guys:
    I would like to know why Java is slower than C and C++ in terms of compilation speed...
    Does it have to do with the fact that Java compiles to byte code first and then the JVM translates byte code to machine code which your processor can understand. whereas C and C++ compiles directly to machine code...
    Any ideas on that,...let me know..

    It's not necessarily. I would suggest that it always is; whencomparing
    specific tasks.I would suggest that is never is (significantly)
    when non-trivial and non-specialized applicationsare
    involved. Requirements and design always have a
    much greater impact.There's no doubt that the design is the most
    important
    aspect when writing a program, but assuming those
    things
    are equal, the fact is that a c program will be
    faster.Yes, but given the fact that there is almost zero chance that the requirements, design and implementation will be optimal, it means that the real differences between the languages are insignificant compared to the real difference caused by the other factors.
    In the theorectical world C/C++ is faster. In the real world, most of the time, it is not significant.

  • Why does Telstra slow uploads speed down

    I have had ongoing issues with my internet connection over the last 18 mouths.Having a upload speed of 450/650 Kbps  very slow no good for gaming an down load of 8/11Mbps down load if more than I needTo the point I have spent good dollars try to insuring   that the infrastructures and the Asset Integrity with in house are in best condition this includes the replacement and work listed belowReplacement of the Wi-Fi system to a Cat.6 cabling at a cost of $2,300Replacement of the modem with a high speed 1G port modem at cost of $ 475Replacement of the fly-lead for the Telstra house connection to the new wall socket a cost of $360Total cost of $3135 this spend was braced on Telstra recommendation as the problem was with my part of the connection after a large number of call to my internet provider I at last had a appointment with a Telstra Tec to carry line testing and fault finding .At this point if no fault was found  I was the be billed at $60 per 15min or part off and travel cost as I live in Bullsbrook WA this may I high . Lucky for me a fault was found in the exchange and reconfigured and the speed and the Exchange improved   to 22Mbps down and 15 Mbps up an outstanding numbers >test at the house 15Mbps and so 5 / 7 Mbps loss for the Exchange to house don’t to good but still very happy with it BUT the upload was 650 kbps /750Kbps and please remember this testing was carry out by Telstra with good equipment so at this point I ask why the upload was so slow? After spending over $2000 and lot of time on the phone only to be told that Telstra slow the upload speed down so the max you can get is 1 Mbps and the only way you can increase this is by paying for a business line but you still may not get any more than 1MbpsThis is only a very small part of the story SO I LIKE TO ASK WHY IS TELSTRA SLOWING ME DOWNIf you like to know more please let me know

    Hi bigdave618, 
    The simple answer is, that's the way the system and hardware is designed, all ISP's are the same. Uploads are limited to around 1Mbps. If you wish to get higher upload speeds you can see if Cable Broadband or NBN are available in your area as these systems allow for higher upload speeds.
    Upload speeds are generally slower than download speeds because of the fact that most internet connected equipment is asymmetric. Asymmetric means that any one packet of data can either go in, or out, but not both ways at the same time. Since most internet users are receiving more data than sending, the internet connected equipment has shifted the higher majority of the signals to go toward downloading.
    If you wish to find out more about ADSL I have added a link to a Wikipedia article below along with the link to the NBN and Telstra websites so you can check to see if Cable Broadband or NBN is available in your area.
    ADSL Wiki article: http://en.wikipedia.org/wiki/Asymmetric_digital_subscriber_line
    Check for available Telstra Cable Broadband: https://www.telstra.com.au/broadband/home-broadband
    Check to see if NBN is available in your area:  http://www.nbnco.com.au/connect-home-or-business/check-your-address.html
    - Ben 

  • Why are EJB's in containers?

    Why are EJB's in containers?
    Isn't it annoying that you have to always install Jboss, Weblogic,...
    What's the advantage then?
    Is this one of the reasons why to use EJB and not Hibernate?

    well one problem I see is that you removed the "hsqldb-ds.xml" file, which contains the DefaultDS datasource. One of the JBoss services depends on this datasource. You can find the declaration for this MBean in deploy/uuid-key-generator.sar/META-INF/jboss-service.xml. Change the "Datasource JNDI name" to your MySQL datasource name.
    However, I don't think this is the real problem you are having. It seems like the persistence unit is not being deployed properly, so somewhere in the log output there should be another exception that says why the persistence unit is failing. Most likely a typo in the XML.
    edit: hmm, failed to see the other thread on this topic... OP: please don't double post, it only leads to confusion!

  • Linksys E3000 keeps slowing down to snail speeds

    Hello. I'm posting this because I'm tired of resetting my router. Every so often my e3000 will like forget its supposed to supply bandwidth. What I mean is that I pay for 7mbps down .5mbps up cable broadband and when the router is working fine I always get really close or over that. When it forgets what its supposed to be doing I get a painful .15mbps~1mbps down/up (usually under dial up tho) I check the modem and all values are running a full speed with good voltages, SNR's, and frequencies. It doesn't seem to matter if I change any values in the router after the issue starts. I need to do a reset either through the firmware "factory defaults" or the red reset button. Then everything goes back to working but I'm seriously getting tired of resetting my router every week or more. Restoring settings also causes it to go into crawl mode. This effects wifi and wired connections. Its also been upgraded to the latest firmware version from linksys. Any help on this would be great and don't be afraid to talk tech, I'm quite savvy. Thanks!

    There are many reasons why you experience slow speed or connection. Well, there are few things you should keep in mind with regards to N routers:
    •    Wireless Channel
    The default setting for most Linksys Gateway is either Auto or Channel 6-2.437 GHz.
    QUICK TIP:  For Wireless-N Dual Band-Routers/ Gateway, it is best to use 20 MHz when in a 2.4 GHz or 5 GHz populated area to avoid wireless interference.  For less crowded networks, you can use 40 MHz on a 5 GHz.  If you’re unsure, you may leave channel width at Auto.  This will automatically adjust the settings to 20 or 40 MHz, depending on which best fits your network.
    If you are selecting the 5 GHz wireless network, ensure that your wireless devices and adapters have a 5 GHz capability for selectable dual-band.  Otherwise, do not change the frequency of your router. 
    •    Wireless Security
    It is the encryption method used to protect a wireless network from intruders.  For best wireless-N performance, encrypt your router with WPA2-AES. 
    After configuring your Gateway with these settings, make sure that all wireless devices are in sync with the Gateway‘s wireless configuration.  Also, place the wireless Gateway on an elevated spot and away from other devices that may cause interference.
    •     Wi-Fi Multimedia (WMM) is a wireless Quality of Service feature that improves quality for audio, video, and voice applications by prioritizing wireless traffic. If you have other devices on your network that support WMM then only select Enabled.
    •    Make sure the drivers for the Wireless Card for the computers should be updated as well.. 

  • Why is atv slow to buffer after connecting with cat5 cable

    Why is atv slow to buffer after connecting with cat5 cable

    Update on some things I have tried
    As I am not sure the cause, I have been reading and trying different things, last thing was to set the interfaces to Duplex Full
    I did this on both the Ethernet ports on the routers, and both of the Fast Ethernet ports being used on the switch, but has not changed the speed that PC1 is getting.
    Also turned on CEF on both routers

  • Why is SCP slow realtive to using winSCP on windows?

    Why is SCP slow realtive to using winSCP on windows(3MB/s on mac and 11 MB/s on windows)?

    You are not having my exact same problem, but try this:
    1. Browse to "C:\Users\<YourUserName>\AppData\Roaming" in Windows Explorer.
    2. Rename the "Apple Computer" folder to "Apple Computer-old".
    3. Start iTunes
    4. Close iTunes
    5. Copy the file "iTunesPrefs.xml" from "C:\Users\<YourUserName>\AppData\Roaming\Apple Computer-old\iTunes"
    6. Paste the old "iTunesPrefs.xml" into the new "Apple Computer\iTunes" folder iTunes just created (not the one you renamed) under "C:\Users\<YourUserName>\AppData\Roaming\Apple Computer-old\iTunes"
    7. Overwrite the new iTunesPrefs.xml with your old copy of the file.
    If you don't care about losing your iTunes preferences then you can just do step 2. You can always go back and grab things from the old folder later if you realize you wanted to have your EQ settings, individual track gains, etc...

  • HT1338 Why is macbook slow after installing parallels desktop

    why is macbook slow after installing parallels desktop

    I have the same problem , I installed the triel version of Paralall 9 in my mac already installed OX 10.9 , and my sistem became as the first PC i had in 1990 !! , and i still have 750GB free !!
    so , any idea how to solve this problem ?
    thanks

  • Why is CS6 slow, 64bit-mode or not?

    Got the CS6 trial for OSX. Its not nearly as responsive as promised.
    It can't handle average files with let say 30states in it.
    Escpecially if you create symbols with a lot of elements(30+) which are nested and you want to edit those symbols, there is huge perfomance drop:
    You can't use your keyboard for moving elements within those symbols. The programs give you no feedback what it is doing.
    Then I checked the activity monitor: Apparently fireworks is not running in 64bit mode.
    Is this just the trial version or is the Adobe-Add misleading that it should be running in 64bit?
    My comp-specs:
    lates iMac
    20GB Ram
    SSD 

    And why it has not been improved? Its so obvious slow!
    Dennis Itzwerth
    Am 09.05.2012 um 13:20 schrieb Shubhashri CG <[email protected]>:
    Re: Why is CS6 slow, 64bit-mode or not?
    created by Shubhashri CG in Fireworks - View the full discussion
    Performance improvement in CS6 is made interms of refreshing the Property inspector on Mac platform.
    On Windows platform file open /edit and save limit has been increased for 64 bit machines.
    Adobe Fireworks CS6 is a 32-bit application only.Also performance interms of rendering on canvas or preview is not changed in CS6.
    Thanks
    Shubha
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4390299#4390299
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4390299#4390299. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Fireworks by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Why does EJB needs two interface???

    Hi All,
    This has been asked by many ppl and many of you might be having
    the correct answer for it. Please tell me....
    Why does EJB needs two interface (Home and Remote Interface)?. Why not one?
    Thanx to all...
    Regards
    GoodieGuy

    Hi Goodie ,
    Its good question and its a very valid one , one has to have doubt
    why two , why not one ..
    Here the answer goes ..
    First of all you need to understand that its a distributed computing technique ie I mean lot of people will be accessing the bean at the same time , right ? OK , you cann't access the bean directly.
    and lastly the stateless and entity beans do instance pooling.
    The very purpose of having two interfaces is
    1) To differnentiate the bussiness logic and life cycle methods .
    2) The home interface inititates life cycle methods like creation , destruction etc .
    3) There are lot of beans in the container , and through home you are
    creating the instance or accessing one of them .
    4) Once you have home object using it we get the remote object ie the instance of the bean that you want to access if stateless any bean can be called , if statefull depending upon the parameter in create method that respective bean is created and invoked .
    In ejb 1.0 and 1.1 even though the bean and the client are in same jvm its assumed that they are remote and in 2.0 Ver we have local this is to avoid network traffic .
    Hope you have got the answer , but if u still need clarification
    read EBRoman book first and second chapters thoroughly and then proceed
    a head.
    Bye
    Mahesh L.
    ============

  • Why imovie too slow download on youtube ?

    why imovie too slow send download to youtube

    Bumping this topic again as it's still sort of bugging me, but the problem has been isolated to a few certain sites. On some i get the maximum speed and on others i get snailspeed. One of the slow ones unfortunately is basically anything that has to do with Apple....So all Quicktime movie trailers, iTunes stuff, movies etc are slow, except podcasts that are German. I'm downloading the 30 day trial of iWork and i'm getting whopping 19,2KB/s, when i should be getting about 1300KB/s. You can just imagine the frustration:/
    I'm just wondering am i alone on this or is anybody else excperienceing similar? And as usual, on windows i'm getting full speed all the time, anywhere, grrrr....!
    -CC

  • Why is firefox slower than internet explorer , it use to be faster but not any more it like a snail

    why is firefox very slow and internet explorer now leaves it standing ?
    == This happened ==
    Every time Firefox opened
    == weeks ago

    Some of your extensions might be the cause of the problem. Try starting Firefox in Safe Mode then going to Tools--Addons--Extensions to see if one of your extensions is causing a problem.
    To go into Safe Mode click on this link
    https://support.mozilla.com/en-US/kb/Safe+Mode

  • Why JDeveloper9i so slow

    hi.I am a chinese body.I used your soft --JDevelper9i 902.Now I have
    some questions .Could you help me ? I wrote some EJB code and they can
    run in the oc4j. Now I want to write more EJBs using JDevelper9i.So I
    add the old ejb to my project.Now my project have almost 100 EJBs.Then I
    run them. The JDevelper 9i ran very very slowly . It took 30 minutes to
    start the OC4J .Could you tell me why .Maybe I made some mistake .
    My computer's information :
    CPU P III 933
    RAM 256M
    OS Windows XP professional
    I am poor in English ! I wish you can understand me and ask my questions
    .Or you can give me some books or articles to solve my problem .
    thanks
    Tod

    The memory utilization of a Java process is principaly due to the complexity of the JVM, not the language itself. Much of the memory used is shareable, read-only and or execute only memory pages that the OS can share between Java processes. You can substantially reduce the amount of non-shareable memory consumed by adjusting the command line options to reduce maximum heap size, thread stack size, etc.
    The assertion that Java is slow is not supportable on the evidence at hand. Java's complex environment (the JVM) tends to cause Java programs to startup slowly. I wouldn't write a lot of simple command line utilities in Java (without using some sort of shared JVM) - C, Perl and the like are better at that.
    I build very complex systems with Java and the performance of these is quite good, on par with what you would find if implemented in C or C++.
    On the Unix side of things, Java GUI performance, specifically Swing - AWT if fine, is quite poor when executed on remote X terms. This is supposedly addressed by Java 1.4, but since I generally create server-side systems, I haven't looked into it much.
    That said, I do use a lot of Java Swing GUI applications (OK, mostly on Windows) and they perform quite well on my moderate (366MHz) notebook computer. Specifically JBuilder 4 and 5, and Together/J.
    Chuck

Maybe you are looking for

  • Disable iTunes from automatically opening when iPhone is connected

    Hi, I use a windows xp comp with itunes for windows at work and whenever I just want to charge my iphone, itunes always automatically opens. I've disabled automatic syncing in edit>pref but the iPhone summary screen doesn't allow disabling "automatic

  • 4s: Cannot Restore iOS 6.01 through iTunes - no error code

    Please accept my apologies if this has been covered elsewhere - I've spent hours now going through dozens of sites and cannot get anywhere. I'm having issues with battery life on a 4S (as well as FB not working, but that's minor) after updating to iO

  • InputVerifier for JTextArea problem

    Hello, I am having a problem with using an InputVerifier to check a max character limit on a JTextArea. It seems that occasionally after the verify of the JTextArea fails, I lose the next character I type into it! Here is the code, followed by a desc

  • Axis options

    I just picked up numbers in a hope of getting completely out of Microsoft's clutches, but there are two things I absolutely have to be able to do in my charts that I can't figure out. 1. Can I reverse the y-axis so the lowest numbers are on top (maki

  • How can I modify Finder to actually find my most recent files?

    The more I use Finder the more I realize it's pretty crappy. The "recent files" folder never actually shows any files. And when I create my own recent files saved search, it's hit or miss as to whether it actually shows my recent files. All I'm tryin