Delay when natural starts:

Hello!
On one of my servers when i start natural i have a delay from 3 seconds until the login screen is displayed, on my other servers this is not. So i searchef for that and with “strace” i found out that when starting natural i get hundreds of read errors for the file “/tmp/.adabas_db201.watch”, this file does not exist on all of my other servers, does someone know what’s the sense of this file and why is it created on this specific server?
Adabas 6.4.0.00
Redhat 6.4
Naturl 8.3.3

I don’t recognize this as a “standard” file of either ADA or NAT, so I guess this is something site specific,
check if there is a Natural startup program running, referencing that file, in the environment experiencing
the delay.

Hello Wolfgang! Refering to your name i guess we should be able to speak german :slight_smile:
No, it is definiteley created when i start a adabas database with “adastart”, wen i stop the database with “adastop” the file will be deleted. This time i recognized that on my 2nd adabas 6.4.0.00 server the files also exist, it may has to do with the 6.4 release, do you have a 6.4 running?
Since the file is a hidden file many people may do not recognize ist.

Jetzt ab ich’s auch gerade bei deiner Orteinstellung gesehen das wir ev. auch auf deutsch schreiben könnten :))

Some new experiences, when i run “strace -t -o /tmp/natural.strace natural” i get:


12:05:53 shmat(786435, 0, 0)            = ?
12:05:53 inotify_init()                 = 6
12:05:53 fcntl(6, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
12:05:53 inotify_add_watch(6, "/tmp/.adabas_db201.watch", IN_CLOSE_WRITE|IN_CLOSE_NOWRITE) = 1
12:05:53 read(6, 0x7ffff95f7950, 16)    = -1 EAGAIN (Resource temporarily unavailable)
12:05:53 msgget(0xada000c9, 0666)       = 1212418
12:05:53 msgget(0xada001c9, 0666)       = 1245187
12:05:53 msgget(0xad0000c9, 0666)       = 1179649
12:05:53 msgsnd(1212418, {1, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}, 24, 0) = 0
12:05:53 msgrcv(1179649, 1179649{1, "\6\0\0\0\2\0\0\0\5\0\0\0\0\0\0\0\0\0\0\0\0\0\30\0\0\0\0\0\0\0\0\0"...}, 40, 0, 0) = 24
12:05:53 semget(0xada100c9, 0, 0666)    = 884745
12:05:53 semop(884745, {{0, 1, SEM_UNDO}, {2, 1, SEM_UNDO}}, 2) = 0
12:05:53 msgget(0xad0002c9, 0666)       = 1572869
12:05:53 msgsnd(1212418, {2, "\6\0\0\0\2\0\0\0\5\0\0\0\0\0\0\0\0\0\0\0\0\0\30\0"}, 24, 0) = 0
12:05:53 msgrcv(1572869, 1572869{2, "\6\0\0\0\2\0\0\0\5\0\0\0\0\0\0\0\0\0\0\0\0\0\30\0\0\0\0\0\0\0\0\0"...}, 40, 0, 0) = 24
12:05:53 read(6, 0x7ffff95f7850, 16)    = -1 EAGAIN (Resource temporarily unavailable)
12:05:53 msgsnd(1245187, {4, "\0\0\0\0\2\0\0\0\5\0\0\0\354\1\0\0\0\0\0\0\0\0\0\0"}, 24, 0) = 0
12:05:53 msgrcv(1572869, 1572869{4, "\0\0\0\0\2\0\0\0\5\0\0\0\354\1\0\0\210\264\0\0\0\0\30\0\0\0\0\0\0\0\0\0"...}, 40, 0, 0) = 24
12:05:53 msgsnd(1245187, {6, "\0\0\0\0\2\0\0\0\5\0\0\0\354\1\0\0\210\264\0\0\0\0\30\0"}, 24, 0) = 0
12:05:53 msgrcv(1572869, 1572869{7, "\0\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0\210\264\0\0\0\0\30\0\0\0\0\0\0\0\0\0"...}, 40, 0, 0) = 24
12:05:53 read(6, 0x7ffff95f7980, 16)    = -1 EAGAIN (Resource temporarily unavailable)
12:05:53 msgsnd(1212418, {5, "\0\0\0\0\2\0\0\0\5\0\0\0\354\1\0\0\210\264\0\0\0\0\0\0"}, 24, 0) = 0
12:05:53 msgsnd(1212418, {4, "\0\0\0\0\2\0\0\0\5\0\0\0;\3\0\0\210\264\0\0\0\0\0\0"}, 24, 0) = 0
12:05:53 msgrcv(1572869, 1572869{4, "\0\0\0\0\2\0\0\0\5\0\0\0;\3\0\0\210\270\0\0\0\0\30\0\0\0\0\0\0\0\0\0"...}, 40, 0, 0) = 24
12:05:53 msgsnd(1212418, {6, "\0\0\0\0\2\0\0\0\5\0\0\0;\3\0\0\210\270\0\0\0\0\30\0"}, 24, 0) = 0
12:05:53 msgrcv(1572869, 1572869{7, "\0\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0\210\270\0\0\0\0\30\0\0\0\0\0\0\0\0\0"...}, 40, 0, 0) = 24
12:05:53 read(6, 0x7ffff95f7980, 16)    = -1 EAGAIN (Resource temporarily unavailable)
12:05:53 msgsnd(1245187, {6, "\0\0\0\0\2\0\0\0\5\0\0\0;\3\0\0\210\270\0\0\0\0\0\0"}, 24, 0) = 0
12:05:53 msgrcv(1572869, 1572869{7, "\0\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0\210\270\0\0\0\0\30\0\0\0\0\0\0\0\0\0"...}, 40, 0, 0) = 24

The last lines are equal from log line number 1900 to ~ 180000, think this will make the delay. Since Natural knows the file it seams to be a new “feature” of adabas.

Hallo Max,

we could, of course, discuss this issue in German, but that wouldn’t be fair to all non-german-speakers on the forum :wink:

I didn’t have a 6.4 installed, but did so, especially for you, now.

And I still don’t see these files being created, so I still believe this is something site specific,
especially as you see it being read from Natural.

Please post your DB201.INI maybe we’ll find a clue there.

Cheers - Wolfgang

Hi, this is my configuration file of Database db205, the file “/tmp/.adabas_db205_watch” is also created for the database.


[CONTAINER]
  ASSO1                = /softwareag/db205/ASSO1.205
  ASSO10               = /softwareag/db205/ASSO10.205
  ASSO11               = /softwareag/db205/ASSO11.205
  ASSO12               = /softwareag/db205/ASSO12.205
  ASSO13               = /softwareag/db205/ASSO13.205
  ASSO14               = /softwareag/db205/ASSO14.205
  ASSO15               = /softwareag/db205/ASSO15.205
  ASSO2                = /softwareag/db205/ASSO2.205
  ASSO3                = /softwareag/db205/ASSO3.205
  ASSO4                = /softwareag/db205/ASSO4.205
  ASSO5                = /softwareag/db205/ASSO5.205
  ASSO6                = /softwareag/db205/ASSO6.205
  ASSO7                = /softwareag/db205/ASSO7.205
  ASSO8                = /softwareag/db205/ASSO8.205
  ASSO9                = /softwareag/db205/ASSO9.205
  DATA1                = /softwareag/db205/DATA1.205
  DATA2                = /softwareag/db205/DATA2.205
  DATA3                = /softwareag/db205/DATA3.205
  NUCCLG               = /opt/softwareag/Adabas/db205/NUCCLG
  NUCPLG               = /opt/softwareag/Adabas/db205/NUCPLG
  TEMP1                = /softwareag/db205/TEMP1.205
  WORK1                = /softwareag/db205/WORK1.205
[CONTAINER-END]

[DB_PARAMETER]
  [ACTION_DBA]
    sag
  [ACTION_DBA-END]

  [ADANUC_STARTED]
    ACTION               = NO
    ACTION_ROUTINE       = ada_nsta
  [ADANUC_STARTED-END]

  [ADANUC_TERMINATED]
    ACTION               = NO
    ACTION_ROUTINE       = ada_nsto
  [ADANUC_TERMINATED-END]

  [DELETE_CHECKPOINTS]
    ACTION               = NO
    ACTION_ROUTINE       = ada_dlcp
    MINIMUM              = 100
  [DELETE_CHECKPOINTS-END]

  [INCREASE_ASSO]
    ACTION               = NO
    ACTION_ROUTINE       = ada_iass
    EXTEND_RATE          = 10
    MESSAGE              = (I=40,W=20,E=10,F=5)
    MINIMUM              = 15
  [INCREASE_ASSO-END]

  [INCREASE_DATA]
    ACTION               = NO
    ACTION_ROUTINE       = ada_idat
    EXTEND_RATE          = 10
    MESSAGE              = (I=40,W=20,E=10,F=5)
    MINIMUM              = 15
  [INCREASE_DATA-END]

  [INCREASE_LBP]
    ACTION               = NO
    ACTION_ROUTINE       = ada_inuc
    MESSAGE              = (E=101)
  [INCREASE_LBP-END]

  [INCREASE_LS]
    ACTION               = NO
    ACTION_ROUTINE       = ada_inuc
    MESSAGE              = (I=50,W=80,E=101)
  [INCREASE_LS-END]

  [INCREASE_LWP]
    ACTION               = NO
    ACTION_ROUTINE       = ada_inuc
    MESSAGE              = (E=101)
  [INCREASE_LWP-END]

  [INCREASE_NH]
    ACTION               = NO
    ACTION_ROUTINE       = ada_inuc
    MESSAGE              = (I=50,W=80,E=101)
  [INCREASE_NH-END]

  [INCREASE_NT]
    ACTION               = NO
    ACTION_ROUTINE       = ada_inuc
    MESSAGE              = (I=90)
  [INCREASE_NT-END]

  [INCREASE_NU]
    ACTION               = NO
    ACTION_ROUTINE       = ada_inuc
    MESSAGE              = (I=80,W=101)
  [INCREASE_NU-END]

  [OFFLINE_CHECKPOINTS]
    MESSAGE              = (I=50,W=20,E=5,F=2)
  [OFFLINE_CHECKPOINTS-END]

  [RECOVER_LOST_BLOCKS]
    ACTION               = NO
    ACTION_ROUTINE       = ada_rlst
  [RECOVER_LOST_BLOCKS-END]

  [REORDER_FILE]
    ACTION               = NO
    ACTION_ROUTINE       = ada_reor
    MAXIMUM              = 12
    MESSAGE              = (I=10,W=16,E=24,F=30)
  [REORDER_FILE-END]

  [SAVE_DB]
    ACTION               = NO
    ACTION_ROUTINE       = ada_svdb
  [SAVE_DB-END]

  [TERMINATE_ADANUC]
    ABORT                = 12
    CANCEL               = 12
    SHUTDOWN             = 0
  [TERMINATE_ADANUC-END]
[DB_PARAMETER-END]

[ENVIRONMENT]
[ENVIRONMENT-END]

[NUCPARMS]
  LBP                  = 100M
  LOGGING              =
  LWP                  = 1000000
  NT                   = 3
  PLOG
  TNAA                 = 3000
  TNAE                 = 3000
  TNAX                 = 3000
  TT                   = 3000
[NUCPARMS-END]

I’ve just noticed this file is mentioned in section 12 of the ADA640 readme.txt file.

Perhaps there’s a mismatch between the Adabas Client and Adabas Server components on the problem server (he says grasping at straws :slight_smile: ).

Cheers, Graeme