Resultset.next hangs waiting for socketread()

Hi All,
I am running an application which is trying to fetch a set of records using jdbc resultset but , sometimes, it hangs on the socketread and I am not sure what is the cause..Please help:
Below is the piece of code and parameters are:
start=1
iBreakingLimit=30 when it hangs
QueryTimeout=60 sec
limit=60
Hangs at:
SocketInputStream.socketRead()
OracleResultSet.close_or_fetch_from_next(boolean)
ScrollableResultSet.next()
dbStatement=dbConnection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
                                      if(start>1)
                    rs.absolute(start-1);
               int iBreakingLimit=0;
               while (rs.next())
                    ++iBreakingLimit;
                    if(limit>0 && iBreakingLimit>limit)
                         break;
                                  }Edited by: Amer on Apr 15, 2009 7:49 AM
Edited by: Amer on Apr 15, 2009 7:50 AM
Edited by: Amer on Apr 15, 2009 7:50 AM
Edited by: Amer on Apr 15, 2009 7:51 AM

Hi Again,
I wrote a sample class to test the connection and my select statement and I was able to reproduce it outside the application. This class has no update at all and it never returns (hangs at iteration number 7 for the first loop).... Another test (removing timeout set which I think it is not related) shows that it stops at Iteration 4 breaking limit 40 (so it is random).. Also, I tried with TRANSACTION_SERIALIZABLE and got same behavior . THIS does NOT happen with db2 driver using same sample.. Please help!!
package com.udm.core.test;
import java.sql.*;
public class JDBCTest
     public static void main(String s[])
          JDBCTest t = new JDBCTest();
          try
               for(int i=0;i<30;i++)
                    System.out.println("Call ="+i);
                    t.testme();
          catch(Exception e)
               e.printStackTrace();
     public void testme() throws Exception
          String sUrl="jdbc:oracle:thin:";
          String sServer="xxxxxxxxxx";
          String sPort="xxxx";
          String sService="xxxxx";
          String sDriver = "oracle.jdbc.OracleDriver";
          String sUserName="xxxx";
          String sPassword="xxxxxx";
          String sSQL="select about 270 fields from table (pure select statement)";     
          Class<?> cDriverClass=Class.forName(sDriver);
          Driver dDriverObject=(java.sql.Driver)cDriverClass.newInstance();
          DriverManager.registerDriver (dDriverObject);
          String sServiceUrl=sUrl+"@"+sServer+":"+sPort+":"+sService;
          Connection dbConnection=DriverManager.getConnection (sServiceUrl,sUserName,sPassword);
          dbConnection.setAutoCommit(false);
          dbConnection.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
          Statement dbStatement =dbConnection.createStatement();
          dbStatement.setQueryTimeout(60);
          ResultSet rs=dbStatement.executeQuery(sSQL);
          int iBreakingLimit=0;
          int limit=200;
          while (rs.next())
               ++iBreakingLimit;
               if(limit>0 && iBreakingLimit>limit)
                    break;
               System.out.println("\tInside loop iBreakingLimit="+iBreakingLimit);
          rs.close();
          dbStatement.close();
}Thread dump:
Call =7
Full thread dump Java HotSpot(TM) Client VM (1.5.0_16-b02 mixed mode):
"OracleTimeoutPollingThread" daemon prio=10 tid=0x0ac89868 nid=0x1380 waiting on condition [0x0af0f000..0x0af0fbe8]
at java.lang.Thread.sleep(Native Method)
at oracle.jdbc.driver.OracleTimeoutPollingThread.run(OracleTimeoutPollingThread.java:158)
"Low Memory Detector" daemon prio=6 tid=0x00a955e0 nid=0xeb4 runnable [0x00000000..0x00000000]
"CompilerThread0" daemon prio=10 tid=0x00a942f8 nid=0xb30 waiting on condition [0x00000000..0x0abcfa48]
"Signal Dispatcher" daemon prio=10 tid=0x00a93660 nid=0x172c waiting on condition [0x00000000..0x00000000]
"Finalizer" daemon prio=8 tid=0x00a8a440 nid=0x12f0 in Object.wait() [0x0ab4f000..0x0ab4fa68]
at java.lang.Object.wait(Native Method)
- waiting on <0x02fd5d00> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:120)
- locked <0x02fd5d00> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:136)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
"Reference Handler" daemon prio=10 tid=0x00a89008 nid=0xa58 in Object.wait() [0x0ab0f000..0x0ab0fae8]
at java.lang.Object.wait(Native Method)
- waiting on <0x02fd5d88> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:474)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
- locked <0x02fd5d88> (a java.lang.ref.Reference$Lock)
"main" prio=6 tid=0x00036af8 nid=0x1450 runnable [0x0007f000..0x0007fc3c]
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at oracle.net.ns.Packet.receive(Unknown Source)
at oracle.net.ns.DataPacket.receive(Unknown Source)
at oracle.net.ns.NetInputStream.getNextPacket(Unknown Source)
at oracle.net.ns.NetInputStream.read(Unknown Source)
at oracle.jdbc.driver.T4CMAREngine.getNBytes(T4CMAREngine.java:1520)
at oracle.jdbc.driver.T4CMAREngine.unmarshalNBytes(T4CMAREngine.java:1490)
at oracle.jdbc.driver.T4CMAREngine.unmarshalBuffer(T4CMAREngine.java:2004)
at oracle.jdbc.driver.T4CMAREngine.unmarshalCLR(T4CMAREngine.java:1791)
at oracle.jdbc.driver.T4CMAREngine.unmarshalCLR(T4CMAREngine.java:1925)
at oracle.jdbc.driver.T4CMAREngine.unmarshalDALC(T4CMAREngine.java:2347)
at oracle.jdbc.driver.T4C8TTIuds.unmarshal(T4C8TTIuds.java:134)
at oracle.jdbc.driver.T4CTTIdcb.receiveCommon(T4CTTIdcb.java:154)
at oracle.jdbc.driver.T4CTTIdcb.receive(T4CTTIdcb.java:114)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:703)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:216)
at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:799)
at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1039)
at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:839)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1124)
at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1272)
- locked <0x02b2f5b0> (a oracle.jdbc.driver.T4CPreparedStatement)
- locked <0x02b18e30> (a oracle.jdbc.driver.T4CConnection)
at com.udm.core.test.JDBCTest.testme(JDBCTest.java:50)
at com.udm.core.test.JDBCTest.main(JDBCTest.java:15)
"VM Thread" prio=10 tid=0x00a86540 nid=0xfec runnable
Edited by: Amer on Apr 17, 2009 6:45 AM
Edited by: Amer on Apr 17, 2009 6:45 AM
Edited by: Amer on Apr 17, 2009 6:47 AM
Edited by: Amer on Apr 17, 2009 6:48 AM
Edited by: Amer on Apr 17, 2009 6:58 AM
Edited by: Amer on Apr 17, 2009 7:05 AM

Similar Messages

  • Compressor 4.1.3 hangs Waiting for Create Disc to Finish

    Compressor 4.1.3 hangs at the "Waiting for Create Disc to Finish" stage.  The audio and video streams have been created and are in Finder. The correct drive has been selected in the Actions section and there is a disk in the drive. I have run Compressor Repair.  However there is no activity at the drive (which otherwise works fine and will burn a disk from Finder).  Anyone any ideas?

    I'e not run into this before. Try a different clip – preferably a QuickTime movie. Bring that into Compressor and mark a short section with in and out points. Choose Hard Drive for Output Device in the Job Action section. What happens after you submit it?
    Russ

  • JDev 11 hangs - Waiting for Designer to initialize ...

    This was working yesterday. The only change is that I updated my system today. I did get new open-jdk libraries. This "shouldn't" be an issue since I put my JDK in .bash_profile as the first entry in the path.
    java -version returns:
    [klee@laptop ~]$ java -version
    java version "1.6.0_12"
    Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
    Java HotSpot(TM) Server VM (build 11.2-b01, mixed mode)
    [klee@laptop ~]$
    I am running (attempting to run) the Linux version of JDeveloper 11 (11.1.1.0.1). My laptop has 4 GB of memory.
    When starting, Jdeveloper has the intial startup, once the screen goes to the IDE, I see the Waiting for Designer to Initialize. The load from java goes from roughly 161% down to 3%, then nothing changes.
    Any suggestions besides reload JDeveloeper (I have already done that twice in the last month. That solution is getting old - reminds me of running Windows...
    Thanks,
    Ken
    As a side note, how do you enclose code so it has the nice indentation? the pre tags only seem to work for the first few lines, then the font changes from monospace back to the default. I tried code tags, which just printed code and /code (with less than and greater than brackets) at the beginning and end - didn't do much...

    Hi Ken,
    klee wrote:
    As a side note, how do you enclose code so it has the nice indentation? the pre tags only seem to work for the first few lines, then the font changes from monospace back to the default. I tried code tags, which just printed code and /code (with less than and greater than brackets) at the beginning and end - didn't do much...You can enclose your codes in between two tags.
    Regards,
    Chan Kelwin                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Time Machine hang- Waiting for Index to become available (100)

    Hi- I'm trying to create a new Time Machine backup to a new external HD (FW800). I've formatted the drive as Mac OS Extended and told TM to use this as the backup drive. I should note that I've done TM backups in the past with a different drive which was a USB2.0 drive, but just got this FW800 and thought it would be much faster to use.
    Anyway, now I'm getting the dreaded 'Waiting for Index to become available (100)' message from the TM buddy widget. This keeps repeating every few seconds. I let it run overnight and about 14 hours later, TM backed up 6G from a 150G total. As I watched the backup run, it's copying over about 1M every few minutes. How can this be? I've read through some of the forum entries and I tried placing the external drive in the Spotlight exclusion, and I also uninstalled any traces of Norton that I had installed. Nothing is making this backup go any faster.
    So why in the past, has the first backup run fairly quickly, and now this is running like it will take several days to complete?
    Please- any help will be greatly appreciated!! thanks.

    BrianMBM wrote:
    As far as the communication issue, the external drive mounts just fine, and I can access it in the finder, so I don't believe physical connection is the culprit here.
    Not necessarily. A marginal connection may work, but with lots of retries, resulting in things being quite slow. It's fairly rare, but can happen.
    I just don't understand why just months ago, the first TM backup started right away and now this is taking forever- Is this a change that was released in an update from Apple in how TM works?
    No. In fact, they're supposed to be somewhat faster on Snow Leopard.
    How can I delete every trace of previous TM backups and completely start from scratch?
    You can erase the drive. If you're going to do that anyway, you might as well reformat it, with the GUID *Partition Map Scheme.* APM should work fine, but if you ever want to use it as a boot drive, GUID is preferred for an Intel Mac.
    There's obviously something that's causing this indexing thing to take so long that's never happened in the past.
    Try the reformat. (You'll probably have to exclude it from Spotlight again.)
    Is it a multi-interface drive? If so, try connecting via USB temporarily.
    If that doesn't help, try just copying a large file or folder and see how fast it is. If that's slow, too, you know it isn't Time Machine but something else associated with your F/W card, port, cable, or drive.

  • Whether two session with for update at the same time will wait for another?

    Will this scenario happen?
    One session executes: select ... for update/select ... for update nowait
    The other session also executes: select ... for update/select ... for update nowait
    Two sessions happens at the same time unluckily. Whether they will all stand by because of "for update" or quit immediately because of "nowait"?
    Thx a lot.

    HiddenName wrote:
    This situation is called 'a deadlock'. Oracle will automaticaly detect a deadlock. One of the statements will fail with ORA-00060 deadlock detected;
    No, it's not.
    A deadlock is when sesson-A has a lock on something that session-B needs in order to continue, and at the same time, session-B has a lock on something that Session-A needs in order to continue. They BOTH have something the other needs.
    In the OP's case, at least as he described it, it is simple serialization. The one with the lower scn will go, then the next.
    PS.
    Why don't you try? You can setup a small table with some records, open 2 sessions to the same database and for example issue UPDATE statements:
    session 1: update where id=1
    session 2: update where id=2
    session 1: update where id=2 - this will hang waiting for session 2 to commit and free lock
    session 2: update where id=1 - ORA-00060
    You may also read about deadlocks in chapter on "Data Concurency and Consistency" of "Oracle Concepts'.

  • Hostscan is waiting for next scan

    Hi gurus
     Everytime I start annyconnect it goes through all the steps but hangs on 
    " hostscan is waiting for next scan" and do nothing
    Thanks a bunch gurus

    Having this problem too recently with one of company machines. It gets stuck on the hostscan phase and just keeps looping with that same error " hostscan is waiting for next scan". If I disable the hostscan on the ASA for that specific VPN profile it works fine. We have hundreds of other machines that work fine, so this is limited issue being experienced on one machine so far.
    Would appreciate it if anyone has found a solution for this. AnyConnect Version 3.1.04072, hostscan version 3.104072, Windows 7
    Thanks

  • Wait for Next Sample Clock error, or 'How do I put this VI on a diet'?

    Hello!
    In the attached VI I've been running since June, I have all the functionality I need.  No questions there at all, thanks to much time and help from this board!
    My nagging problem is that any time I use the PC for other minor tasks other than Labview, it will display the following error:
    209802 occurred at DAQmx Wait For Next Sample Clock.vi:1
    A search earlier in the month indicated that it could have been a result of my old and outdated PC; I've since replaced it with a brand-new dell dimension 1100.  Celeron 2.53ghz with 1.00gb of ram.  Should be enough to service Labview and other minor tasks (automatic antivirus updating and also maintenance tasks).  However, any time any other program opens or even if the screen is scrolled around on Labview quickly, I get that same error.
    Resource usage when idle, with nothing but this VI running is 5-10%, all labview.  Upon scrolling the VI, it quickly jumps to the 58-60% and above mark and soon throws that error.
    I know that there's a lot of code here that can be cleaner--I know that even though it's functioning correctly, there could be a less resource-hogging way to go about it.  Can anyone give me any suggestions on how to make this VI a little 'lighter'?
    Thanks so much in advance,
    Ralph
    Still confused after 8 years.
    Attachments:
    Currently Running 063006.vi ‏899 KB

    Hi Ralph,
    The wait.vi waits until the amount of time has passed. While the wait on next ms.vi uses some kind of quotient and remainder on the computer time until the remainder passed zero.
    In this way you can synchronize 2 loops, and somehow it is less time-consuming. The only difference you will see is in the first run!
    There you see a smaller amount of time:
    Message Edited by TonP on 10-04-2006 04:21 PM
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!
    Attachments:
    Example_BD.png ‏2 KB

  • I keep getting this error message: ITunes was unable to load data class information from Synch Services. Reconnect or try again later. What does that mean? Can I fix it? or do I have to wait for the next update?

    I keep getting this error message: ITunes was unable to load data class information from Synch Services. Reconnect or try again later. What does that mean? Can I fix it? or do I have to wait for the next update?

    See TS2690: iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert.
    tt2

  • TS4124 I have the cloud icon next to music heading in iTunes, not individual songs, am I waiting for something???

    I have match, I have a cloud on my heading music in iTunes, I have no music on iPhone other than my past purchases and apps. Am I waiting for something to happen in iTunes with this cloud? I don't have clouds next to songs, I can't download anything even though match is on all devices. Please help.

    The small cloud icon to the right of your songs means the song is not stored on you devices drive, not that it was uploaded to iCloud.  You can listen to that song, but it's being streamed.  If you tap on the small cloud icon it should download the song onto your devices hard drive.  Once you do that the icon should not reappear again.

  • Should You Buy An iPhone Now, Or Wait For The Next One?

    Great article by HuffPost Tech.
    The most common thing I get asked whenever I tell anyone I'm a tech writer is some version of the question: "Should I get a new iPhone now, or should I wait until the next one comes out?" It is as though my business card should read not "Technology Writer," and instead "iPhone Psychic"
    Not that I am not happy to prognosticate! And in that spirit, here's a look at the questions on everyone's mind: Should I buy an iPhone now? And if not now, when?
    First, let me say that I am fascinated by the peculiar kind of panic that I encounter in people I meet who are deciding on a purchase date for their next Apple phone. I call it the iSenberg Uncertainty Principle: Potential iPhone buyers exist in a constant state of anxiety, perpetually worrying that purchasing an iPhone on any given day will mean that they will miss out on the inevitably cooler version with the mind-blowing new features soon down the road. The Cupertino Sword of Damocles constantly dangles over their heads, threatening to pierce them with unhipness and iShame.
    Here is one solid piece of advice I can offer to help you avoid the Sword: Do not buy any new iPhone until September. Apple has an annual media conference each September, and every blog with the word 'Mac' in the title is reporting that Steve Jobs is going to do his black turtleneck thing and introduce some kind of new iPhone there. The September Media conference is generally used to present the new iPods, but as All Things Digital reports, Apple plans to "commandeer" the conference for its official iPhone announcement.
    Apple is long overdue to release its new iPhone anyway, if history is any indication. Look at this handy little timeline:
    June 2007: original iPhone released
    June 2008: iPhone 3G released
    June 2009: iPhone 3Gs released
    June 2010: iPhone 4 released
    June 2011: Nothing!
    In other words, the 5th generation iPhone is already a month late, so it makes sense that the rumors are swirling. Apple's tardiness can be explained by the fact they've actually already released two iPhones in 2011 -- the Verizon iPhone in February and the unlocked iPhone 4 in June. Their schedule is all screwy, like a traveler trying to get over jet lag. But all signs point to them getting right with a September Apple iPhone release.
    So what jaw-dropping new feature will this iPhone boast? We're hearing that the "iPhone 4S," as it is rumored to be called, won't be the dramatic re-imagining that many of us have come to expect with each new iPhone release. Tech blogThis Is My Next thinks that it will be thinner and lighter, and that it will run on a new chip; the New York Times thinks that it will be the same dimensions as the iPhone 4 but that it will be cheaper. Bloomberg agrees with This Is My Next on the chip and adds that the rear-facing camera will upgrade to 8 megapixels from 5 megapixels.
    Now, even if you're just a normal, non-geek iPhone user, who doesn't care if the rear-facing camera doubles its megapixel count, or if Apple has changed the manufacturer of its data processors, or whatever, you still need to at least wait for the alleged iPhone announcement, and here's why: if history is any indicator, the introduction of a newer iPhone model is accompanied by a drop in price of older iPhone models. When the iPhone 3GS was announced, the price of the iPhone 3G dropped by $100; when the iPhone 4 was announced, the price of an iPhone 3GS also dropped by $100. Even if you know that you're not going to drop $400 on whatever iPhone Apple begins peddling in September, there is no sense in paying more money for an iPhone 4 or 3Gs now when the base price of both seem like locks to drop in two months.
    But before we start fantasizing, how can we be so certain that Jobs is even going to announce an iPhone in September if Apple hasn't so much as indicated such a thing? How do we know that all of these rumors weren't just started by lonely nerds like me and my co-workers emailing each other from our mother's basements, inciting iPhone rumors all on our own?
    Well, first of all, I don't live with my mother; and second of all, the new iPhone rumors have sprung forth from two reliable sources held in high journalistic regard.
    The first is esteemed, award-winning tech journalist John Paczkowski of All Things Digital, who blazed iPhone prognostication trails by predicting back in April that an updated iPhone 4 would be unveiled at the September Apple music Conference and has steadfastly maintained the claim is true through June and into July. In fact, he confirmed as recently as July 5 that a shiny new iPhone looked to be in the early stages of supply chain production, and that people close to the company still believe that the new iPhone would be ready for the Jobs treatment in September.
    So there is Reliable Source One.
    Reliable Source Number Two is the Wall Street Journal, not exactly a one-laptop operation. The paper gives "the end of September" as a target launch date, which squares up with both Paczkowski's prediction of a September announcement and release. This doesn't even mention This Is My Next's separate prediction of a September release, nor 9to5Mac reporting that there are going to be two new iPhones in September, one low-end and high-end. But now we're falling down the rabbit hole and into the basement again, so let's focus:
    There is likely to be a new iPhone in September. It will likely affect the price of all the other iPhones. The iPhones available now -- the iPhone 4 and the iPhone 3Gs -- will probably be cheaper in two months. Unless you drop your current iPhone in a pool, a bathtub or a volcano, do not buy an iPhone until Steve Jobs opens his beautiful brilliant mouth at the Apple conference in early September. When the post-turtleneckian dust settles, we'll have a clearer picture of whether or not this rumored new iPhone is worth the money. And then we can talk about--well, whether or not you should buy an iPhone now, or wait until the next one comes out.
    http://www.huffingtonpost.com/2011/07/12/iphone-release-5-september_n_896345.html

    Apple has two prototypes out testing now.  One is a thinner totally redesigned case.  The problem with it is that Foxconn can't seem to build it.  Hence the delay.  The other prototype uses the existing case, but with updated (read dual core) internals.  If they can get production up by September the first phone will be released and will be the iPhone 5.  If they cannot, then the second prototype will be released as the iPhone 4GS.  

  • EPMA 11.1.2 Essbase Hangs at status waiting for Update

    I know that in 11.1.1.3 there were issues deploying an essbase cube from EPMA, 11.1.2 however claims to be able to do this, but I am having a problem getting the cube deployed.
    I am on 64-Bit Windows 2008, all hyperion products are version 11.1.2 with SQL backend.
    I can validate a simple cube just fine from EPMA.
    I can create cubes in EAS.
    I however cannot deploy a simple cube from EPMA. I have checked all conditions on permissions and followed the guidelines.
    The essbase application is registering to Shared Services (thus I can make sure the permissions are Provisioned).
    The system gets stuck at "Waiting for Status Update..." it will remain at that level (50%) without ever updating. I have changed the awproperties file to time out after 45 minutes. I am not seeing any errors recorded in any of the logs to indicate what problem is going on.
    I need some suggestions as to where to look to force some form of error logs that will give me some clue to the next errors I need to deal with. Or some advice from anyone that has experienced this issue. This is an essbase cube not a planning application. I have EPMA HFM Applications, as well as FCM, FDM deployed on the same foundation without issue.
    The only issue I can find close to this is a Planning deploy with problems about JVM size but nothing about Essbase application JVMs.
    Any ideas?

    Is this an essbase only application? It seems like the property is defaulting to stored and then flipping the initial stored member to shared because Essbase isn't interpreting the deployment correctly. I would try using ShareData as the datastorage property (I think that is the correct spelling). Also, I believe the correct way to set IsPrimary is Y/N and not 0/1.
    If that did not work I would try the following in this order:
    1 - I would first extract the dimension in question using the file generator and confirm that the properties are indeed correct.
    2 - If they were correct. I would toggle the dimension from shared->local->shared. EPMA is still a little nutty and this will fix a fair amount of issues as it will 'refresh' the application's version of the dimension. I would then deploy
    3 - deploy from EPMA->Planning only (no essbase creation), then deploy to essbase separately after ensuring the property represents itself in planning. If it is essbase only - create the outlnie instead of refresh.
    4 - create a duplicate app in EPMA and deploy the copy of the app - and see if it has the same problem
    Try that and see how it goes.

  • PS2013 - When creating a new instance of Project Server hangs in 'Waiting for resources' status

    Hi,
    I have one instance of Project Server 2013 fully operational and I tried to duplicate the instance to make some tests. As I know the issue of using the same Content Database of Project Server in the same Server Farm, I used the powershell  backup/restore/dismount
    and mount the content database to change the site IDs to avoid index duplication. The Project server database was a regular SQL backup and restore in another database.
    I created a new Web App in the port 90 as show below.
    Then I included the Content database of Project Server as separated DB from SharePoint for this new SharePoint -acme90 and I tried to create the new instance. The creation hanged in "Waiting for Resources" status.
    To make another check excluding the reuse of the SharePoint-80 I tried to create another instance both in the SharePoint-80 where is the working instance and in the SharePoint-90, everything default and again they all hanged in Waiting for Resource.
    If I try to create the instance using PowerShell I got the following error:
    PS C:\Users\epm_setup> Mount-SPProjectWebInstance -DatabaseName Test_EPM -SiteCo
    llection http://acme02/epm -Lcid 1046
    Mount-SPProjectWebInstance : Cannot find an SPSite object with Id or Url:
    http://acme02/epm.
    At line:1 char:1
    + Mount-SPProjectWebInstance -DatabaseName Test_EPM -SiteCollection
    http://acme02/ ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~
        + CategoryInfo          : InvalidData: (Microsoft.Offic...ountPwaInstance:
       PSCmdletMountPwaInstance) [Mount-SPProjectWebInstance], SPCmdletPipeBindEx
      ception
        + FullyQualifiedErrorId : Microsoft.Office.Project.Server.Cmdlet.PSCmdletM
       ountPwaInstance
    All SharePoint and Project Server services are running, all App Pools and sites are started at the IIS. I could not find a hanging timer job.
    I cannot stop the hanged process or dismount the instances using Powershell since no instance created.
    How should I solve the hanging status of creation of the instance? As they are in Hyper-V I can go back using one snapshot.
    Thank you.
    Best regards, Ricardo Segawa - Segawas Projetos / Microsoft Partner

    Hi Eric,
    Thank your for your interest in this case.
    I checked for running and crashed PWA jobs and deleted all of them just after restoring the snapshot and tried to create the new instance in the new web app in port 90 (besides the existing and working instance in port 80), but again it hanged in "waiting
    for resources". There is not any timer job hanging, no error in event viewer or in log. So the error is well before working with cloned dbs.
    Answering your questiion, I am working all on 2013. My intention is backup one instance of the port 80 and copy to the instance of port 90, changing of course the url and the index of the content db of SharePoint. The process I used was:
    Create a new web app in port 90, creating a new SharePoint_Content_2 on a
    http://server:90 site.
    Created the top level site called Portal using the Team Site template.
    Create a new content db for new instance of Project Server named EPM_Content_2 using Central Admin.
    Backup content db from port 80 instance of Project Server and restore to this EPM_content_2 using PowerShell cmd.
    Dismounted and mounted this Project Server content db to create new index for existing sites to avoid index conflicts.
    Backup the Project Server DB from port 80 using SQL backup and restored as ProjectWebApp2 db for port 90 instance.
    Tried to create a new instance of Project Server
    http://server:90/pwa on web app of port 90 using the ProjectWebApp2 db and using the same app pool of the other instance. But as in the previous case, it hang out in "Waiting for resources".
    Best regards, Ricardo Segawa - Segawas Projetos / Microsoft Partner

  • Why does Firefox on my Windows 7 PC hang (become unresponsive) while it waits for most pages to load or run scripts?

    Firefox hangs (becomes unresponsive) when accessing many sites including Gmail. Eventually, when hung, Firefox will throw up a window saying "WARNING: A script has become unresponsive" or, in the case of Gmail, the page itself will say "Some Gmail features have failed to load due to an internet connectivity problem."
    IE8 and Google Chrome are working normally. I've tried Firefox in safe mode, re-installing and even running Firefox portable from a USB thumb drive. Each time with the same result—Firefox hangs or becomes unresponsive while it waits for most pages to load or run scripts.
    #### PC Workstation Environment ####
    Firefox 13.0.1
    Windows 7
    Symantec Endpoint Protection 11.0.6200.754
    --

    Your problem sounds like the one that a co-worker and I started to have about the same time. Check your Symantec client management control log. You might see a line like the following.
    Date and Time Severity Level Action Test / Production Description API Class Rule Caller Process ID Caller Process Parameter User
    2012-07-30 10:48:09 AM 15 Block Production Unauthorized NT call rejected by protection driver. System Built-in rule 1608 FlashplayerPlu FuncID-B6H, R... None
    At first we thought that it was a Javascript problem until we noticed this log. The key words are 'Block' and 'FlashPlayerPlu'. This problem recently started for us, perhaps with a software push 1-2 weeks ago. Internet Explorer does not hang when accessing pages with Flash.
    The Flash page does eventually load after a long time. However, since the whole browser hangs for a while, for the most part having the Flash plugin enabled makes Firefox unusable if accessing pages with Flash.
    Disabling the Flash plugin solves the hanging problem, but I do not know what is causing the problem, nor do I know when a combination of Windows 7, Flash, and Symantec will work. Your later version of Symantec shows that we might have the problem for a while, but I do not know what customization CSC did with Symantec. My coworker did run a complete virus scan, uncovering nothing. Another co-worker is running Windows XP. She does not have the problem, but I do not know what other versions of software she is running.
    Symantec Endpoint Protection version 11.0.6100.645
    Flash version 11.3.300.268
    Firefox version 14.0.1
    Windows 7 32-bit service pack 1

  • When a vi hangs...how do I find out what it is waiting for?

    I have a vi.  It is "waiting for front panel activity".  I cause some front panel activity by pressing a control...and the vi functions.  I then press the same button again and the vi hangs, the front panel does not respond to any mouse activity.  When I run the highlight execution function it shows that the case controled by the value change of the control executes to the end in the true case, but then there is no further action anywhere on (in) the vi.
    How do you find out what the vi is waiting on to proceed, or which element "has the ball" so to speak.
    Thanks
    Stopped Humming for a while.

    If you have event structures, you usually have no longer any need for "wait for front panel activity". This was more of a cheap bandaid solution before the introduction of the event structure.
    Many front panel operation don't need to trigger any events or do anything, so spinning the "wait for activity loop" everytime something is clicked is a total waste of resources.
    You should create events only for  things that really do something while other controls (e.g. configuration) don't need to be serviced by any event. The control will keep the data until it is needed by the code.
    Here is an example:
    You need to set aquisition parameters (rate, # of points, etc.) then press a button to start acquisition. None of the paramter settings need any events or need to spin any loops. Once start is pressed, their last settings will get read from the terminal anyway if the code is layed out correctly. And so on....
    LabVIEW Champion . Do more with less code and in less time .

  • LV PDA 8 wait for ms and wait for next N ms multiple costs extrem performance.

    Dear LV PDA users.
    There is another bug using the PDA toolkit.
    The usage of wait for ms and wait for next N ms multiple costs me 200ms while the input is 1ms.
    I have tried it without the wait functions and the looptiming was 0..1ms.
    One possible workaround is to use timout events with while loops.
    This works fine without delays.
    With kind regards
    Martin Kunze
    KDI Digital Instrumentation.com
    e-mail: [email protected]
    Tel: +49 (0)441 9490852

    This issue has already been reported to the R&D group at NI (at least that is what I'm told) ...  refer to this thread ... Here

Maybe you are looking for